Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,10 +14,16 @@ print("HF HUB =", huggingface_hub.__version__)
|
|
| 14 |
|
| 15 |
import gradio as gr
|
| 16 |
|
|
|
|
|
|
|
|
|
|
| 17 |
demo = gr.Interface(
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
| 21 |
)
|
| 22 |
|
| 23 |
demo.launch(show_api=False)
|
|
|
|
| 14 |
|
| 15 |
import gradio as gr
|
| 16 |
|
| 17 |
+
def test(img, audio):
|
| 18 |
+
return "ok"
|
| 19 |
+
|
| 20 |
demo = gr.Interface(
|
| 21 |
+
fn=test,
|
| 22 |
+
inputs=[
|
| 23 |
+
gr.Image(type="numpy"),
|
| 24 |
+
gr.Audio(type="numpy")
|
| 25 |
+
],
|
| 26 |
+
outputs="text"
|
| 27 |
)
|
| 28 |
|
| 29 |
demo.launch(show_api=False)
|