Spaces:
Runtime error
Runtime error
Commit
·
7cb9233
1
Parent(s):
578dd8a
try..
Browse files- app.py +2 -2
- detection/app.py +0 -1
app.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from detection import app
|
| 3 |
from recognition import app_easyocr
|
| 4 |
|
| 5 |
def recognize(img_arr):
|
| 6 |
-
detections =
|
| 7 |
return img_arr, detections
|
| 8 |
|
| 9 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from detection import app as detector
|
| 3 |
from recognition import app_easyocr
|
| 4 |
|
| 5 |
def recognize(img_arr):
|
| 6 |
+
detections = detector.detect(img_arr)
|
| 7 |
return img_arr, detections
|
| 8 |
|
| 9 |
|
detection/app.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
import os
|
| 2 |
-
import gradio as gr
|
| 3 |
import argparse
|
| 4 |
import time
|
| 5 |
from pathlib import Path
|
|
|
|
| 1 |
import os
|
|
|
|
| 2 |
import argparse
|
| 3 |
import time
|
| 4 |
from pathlib import Path
|