Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -833,12 +833,12 @@ with gr.Blocks(css=css) as demo:
|
|
| 833 |
# outputs=[output_text, va_chart, mood_chart]
|
| 834 |
# )
|
| 835 |
predict_btn.click(
|
| 836 |
-
fn=analyze_emotions,
|
| 837 |
inputs=[input_audio, threshold],
|
| 838 |
outputs=[output_text, va_chart, mood_chart]
|
| 839 |
)
|
| 840 |
|
| 841 |
-
demo.load(analyze_emotions,
|
| 842 |
|
| 843 |
# Launch the App
|
| 844 |
demo.queue().launch(share=True, show_error=True)
|
|
|
|
| 833 |
# outputs=[output_text, va_chart, mood_chart]
|
| 834 |
# )
|
| 835 |
predict_btn.click(
|
| 836 |
+
fn=format_prediction(analyze_emotions),
|
| 837 |
inputs=[input_audio, threshold],
|
| 838 |
outputs=[output_text, va_chart, mood_chart]
|
| 839 |
)
|
| 840 |
|
| 841 |
+
demo.load(fn=analyze_emotions, inputs=[input_audio, threshold], outputs=[model_output])
|
| 842 |
|
| 843 |
# Launch the App
|
| 844 |
demo.queue().launch(share=True, show_error=True)
|