Update app.py
Browse files
app.py
CHANGED
@@ -46,9 +46,10 @@ with gr.Blocks(css="style.css") as demo:
|
|
46 |
input_img = gr.Image(type="filepath", elem_id="input-img")
|
47 |
sound_output = gr.Video(label="Result", elem_id="sound-output")
|
48 |
|
49 |
-
generate = gr.Button("Generate
|
50 |
|
51 |
gr.HTML(article)
|
52 |
-
|
|
|
53 |
|
54 |
demo.queue(max_size=32, concurrency_count=20).launch()
|
|
|
46 |
input_img = gr.Image(type="filepath", elem_id="input-img")
|
47 |
sound_output = gr.Video(label="Result", elem_id="sound-output")
|
48 |
|
49 |
+
generate = gr.Button("Generate FX from Image")
|
50 |
|
51 |
gr.HTML(article)
|
52 |
+
|
53 |
+
generate.click(infer, inputs=[input_img], outputs=[sound_output], api_name="i2fx")
|
54 |
|
55 |
demo.queue(max_size=32, concurrency_count=20).launch()
|