Spaces:
Runtime error
Runtime error
added examples
Browse files
app.py
CHANGED
@@ -121,6 +121,13 @@ with gr.Blocks(css=css) as demo:
|
|
121 |
img_result = gr.Image(label="Image Result")
|
122 |
tryagain_btn = gr.Button("Try again ?", visible=False)
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
#infer_btn.click(fn=infer, inputs=[audio_input], outputs=[lpmc_cap, llama_trans_cap, img_result])
|
125 |
infer_btn.click(fn=infer, inputs=[audio_input], outputs=[img_result, llama_trans_cap, tryagain_btn])
|
126 |
tryagain_btn.click(fn=solo_xd, inputs=[llama_trans_cap], outputs=[img_result])
|
|
|
121 |
img_result = gr.Image(label="Image Result")
|
122 |
tryagain_btn = gr.Button("Try again ?", visible=False)
|
123 |
|
124 |
+
gr.Examples(examples=[["./examples/electronic.mp3"],["./examples/folk.wav"], ["./examples/orchestra.wav"]],
|
125 |
+
fn=infer,
|
126 |
+
inputs=[audio_input],
|
127 |
+
outputs=[img_result, llama_trans_cap, tryagain_btn],
|
128 |
+
cache_examples=True
|
129 |
+
)
|
130 |
+
|
131 |
#infer_btn.click(fn=infer, inputs=[audio_input], outputs=[lpmc_cap, llama_trans_cap, img_result])
|
132 |
infer_btn.click(fn=infer, inputs=[audio_input], outputs=[img_result, llama_trans_cap, tryagain_btn])
|
133 |
tryagain_btn.click(fn=solo_xd, inputs=[llama_trans_cap], outputs=[img_result])
|