Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
80 |
gr.HTML(title)
|
81 |
|
82 |
input_img = gr.Image(type="filepath", elem_id="input-img")
|
83 |
-
|
84 |
with gr.Column():
|
85 |
manual_cap = gr.Textbox(label="Manual Image description (optional)", lines=3, placeholder=ph_message)
|
86 |
with gr.Row():
|
@@ -98,7 +98,8 @@ with gr.Blocks(css="style.css") as demo:
|
|
98 |
share_button = gr.Button("Share to community", elem_id="share-btn")
|
99 |
|
100 |
gr.HTML(article)
|
101 |
-
|
|
|
102 |
generate.click(infer, inputs=[input_img, manual_cap, duration_in, seed_in], outputs=[caption_output, sound_output, manual_cap, share_group], api_name="i2fx")
|
103 |
share_button.click(None, [], [], _js=share_js)
|
104 |
|
|
|
80 |
gr.HTML(title)
|
81 |
|
82 |
input_img = gr.Image(type="filepath", elem_id="input-img")
|
83 |
+
|
84 |
with gr.Column():
|
85 |
manual_cap = gr.Textbox(label="Manual Image description (optional)", lines=3, placeholder=ph_message)
|
86 |
with gr.Row():
|
|
|
98 |
share_button = gr.Button("Share to community", elem_id="share-btn")
|
99 |
|
100 |
gr.HTML(article)
|
101 |
+
|
102 |
+
input_img.change(manual_cap.update(placeholder=ph_message))
|
103 |
generate.click(infer, inputs=[input_img, manual_cap, duration_in, seed_in], outputs=[caption_output, sound_output, manual_cap, share_group], api_name="i2fx")
|
104 |
share_button.click(None, [], [], _js=share_js)
|
105 |
|