Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -586,13 +586,13 @@ with gr.Blocks(css=css) as demo:
|
|
586 |
)
|
587 |
|
588 |
# Add example usage
|
589 |
-
gr.Examples(
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
)
|
596 |
|
597 |
predict_btn.click(
|
598 |
fn=lambda audio, thresh: format_prediction(music2emo.predict(audio, thresh)),
|
|
|
586 |
)
|
587 |
|
588 |
# Add example usage
|
589 |
+
# gr.Examples(
|
590 |
+
# examples=["inference/input/test.mp3"],
|
591 |
+
# inputs=input_audio,
|
592 |
+
# outputs=output_text,
|
593 |
+
# fn=lambda x: format_prediction(music2emo.predict(x, 0.5)),
|
594 |
+
# cache_examples=True
|
595 |
+
# )
|
596 |
|
597 |
predict_btn.click(
|
598 |
fn=lambda audio, thresh: format_prediction(music2emo.predict(audio, thresh)),
|