Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ with gr.Blocks(css=css) as demo:
|
|
37 |
[![Duplicate this Space](https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-sm.svg)](https://huggingface.co/spaces/fffiloni/SplitTrack2MusicGen?duplicate=true) for longer audio, more control and no queue.</p>
|
38 |
"""
|
39 |
)
|
40 |
-
image_in = gr.Image(label="Image input")
|
41 |
submit_btn = gr.Button('Sumbit')
|
42 |
story = gr.Textbox(label="Generated Story")
|
43 |
submit_btn.click(fn=infer, inputs=[image_in], outputs=[story])
|
|
|
37 |
[![Duplicate this Space](https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-sm.svg)](https://huggingface.co/spaces/fffiloni/SplitTrack2MusicGen?duplicate=true) for longer audio, more control and no queue.</p>
|
38 |
"""
|
39 |
)
|
40 |
+
image_in = gr.Image(label="Image input", type="filepath")
|
41 |
submit_btn = gr.Button('Sumbit')
|
42 |
story = gr.Textbox(label="Generated Story")
|
43 |
submit_btn.click(fn=infer, inputs=[image_in], outputs=[story])
|