Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
from mhr.predict_tools import MHRStoneRecognizeMgr, MHRVedioCuter
|
| 4 |
|
|
@@ -35,9 +36,12 @@ def greet3(x, progress=gr.Progress()):
|
|
| 35 |
|
| 36 |
demo = gr.Interface(
|
| 37 |
fn=greet3,
|
| 38 |
-
inputs=gr.
|
| 39 |
-
outputs=
|
| 40 |
examples = "./example",
|
|
|
|
|
|
|
|
|
|
| 41 |
)
|
| 42 |
demo.queue().launch(debug=True)
|
| 43 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import time
|
| 3 |
|
| 4 |
from mhr.predict_tools import MHRStoneRecognizeMgr, MHRVedioCuter
|
| 5 |
|
|
|
|
| 36 |
|
| 37 |
demo = gr.Interface(
|
| 38 |
fn=greet3,
|
| 39 |
+
inputs=gr.Textbox(),
|
| 40 |
+
outputs=gr.Textbox(),
|
| 41 |
examples = "./example",
|
| 42 |
+
# inputs=gr.Video(),
|
| 43 |
+
# outputs="text",
|
| 44 |
+
# examples = "./example",
|
| 45 |
)
|
| 46 |
demo.queue().launch(debug=True)
|
| 47 |
|