Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -52,11 +52,14 @@ def recognize(audio):
|
|
52 |
return predict(audio_array, sr)
|
53 |
|
54 |
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
-
|
61 |
-
|
62 |
-
blocks.launch(enable_queue=True, debug=True)
|
|
|
52 |
return predict(audio_array, sr)
|
53 |
|
54 |
|
55 |
+
interface = gr.Interface(
|
56 |
+
fn=recognize,
|
57 |
+
inputs=[
|
58 |
+
gr.Audio(source="microphone", type="numpy", label="Скажите что-нибудь...")
|
59 |
+
],
|
60 |
+
outputs=[
|
61 |
+
output = gr.JSON(label="Эмоции")
|
62 |
+
],
|
63 |
+
live=True)
|
64 |
|
65 |
+
interface.launch(debug=True)
|
|
|
|