Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,14 +10,14 @@ pipe = pipeline(
|
|
10 |
chunk_length_s=30,
|
11 |
device=device,
|
12 |
)
|
|
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
"
|
|
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
[{'text': ' Mr. Quilter is the apostle of the middle classes and we are glad to welcome his gospel.',
|
23 |
-
'timestamp': (0.0, 5.44)}]
|
|
|
10 |
chunk_length_s=30,
|
11 |
device=device,
|
12 |
)
|
13 |
+
|
14 |
|
15 |
+
gradio_app = gr.Interface(
|
16 |
+
predict,
|
17 |
+
inputs=gr.Audio(label="Select hot dog candidate", sources=['upload', 'webcam'], type="pil"),
|
18 |
+
outputs=[gr. Audio(label="Processed Image"), gr.Label(label="Result", num_top_classes=2)],
|
19 |
+
title="Hot Dog? Or Not?",
|
20 |
+
)
|
21 |
|
22 |
+
if __name__ == "__main__":
|
23 |
+
gradio_app.launch()
|
|
|
|