Spaces:
Paused
Paused
added community share group
Browse files
app.py
CHANGED
@@ -61,12 +61,17 @@ with gr.Blocks(css=css) as demo:
|
|
61 |
</p>
|
62 |
</div>""")
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
|
|
|
|
|
|
|
|
70 |
generate.click(get_prompts, inputs=[input_img], outputs=[music_output, output_text])
|
71 |
|
72 |
demo.queue(max_size=32, concurrency_count=20).launch()
|
|
|
61 |
</p>
|
62 |
</div>""")
|
63 |
|
64 |
+
|
65 |
+
input_img = gr.Image(type="filepath", elem_id="input-img")
|
66 |
+
generate = gr.Button("Generate Music from Image")
|
67 |
+
|
68 |
+
music_output = gr.Audio(label="Result", type="filepath", elem_id="music-output")
|
69 |
+
|
70 |
+
with gr.Group(elem_id="share-btn-container"):
|
71 |
+
community_icon = gr.HTML(community_icon_html, visible=False)
|
72 |
+
loading_icon = gr.HTML(loading_icon_html, visible=False)
|
73 |
+
share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
|
74 |
+
|
75 |
generate.click(get_prompts, inputs=[input_img], outputs=[music_output, output_text])
|
76 |
|
77 |
demo.queue(max_size=32, concurrency_count=20).launch()
|