Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def greet(v):
|
|
| 14 |
progress = gr.Progress(0)
|
| 15 |
cuter = MHRVedioCuter(5)
|
| 16 |
for data in progress.tqdm(cuter.iter(v)):
|
| 17 |
-
ok, ret = mgr.recognize_image(
|
| 18 |
print(ret)
|
| 19 |
result.append(ret)
|
| 20 |
|
|
@@ -27,7 +27,7 @@ def greet2(v):
|
|
| 27 |
return ret
|
| 28 |
|
| 29 |
demo = gr.Interface(
|
| 30 |
-
fn=
|
| 31 |
inputs=gr.Video(),
|
| 32 |
outputs="text",
|
| 33 |
examples = "./example",
|
|
|
|
| 14 |
progress = gr.Progress(0)
|
| 15 |
cuter = MHRVedioCuter(5)
|
| 16 |
for data in progress.tqdm(cuter.iter(v)):
|
| 17 |
+
ok, ret = mgr.recognize_image(data)
|
| 18 |
print(ret)
|
| 19 |
result.append(ret)
|
| 20 |
|
|
|
|
| 27 |
return ret
|
| 28 |
|
| 29 |
demo = gr.Interface(
|
| 30 |
+
fn=greet,
|
| 31 |
inputs=gr.Video(),
|
| 32 |
outputs="text",
|
| 33 |
examples = "./example",
|