fffiloni commited on
Commit
369ed77
โ€ข
1 Parent(s): f394239

added community share group

Browse files
Files changed (1) hide show
  1. app.py +11 -6
app.py CHANGED
@@ -61,12 +61,17 @@ with gr.Blocks(css=css) as demo:
61
  </p>
62
  </div>""")
63
 
64
- with gr.Column():
65
- input_img = gr.Image(type="filepath", elem_id="input-img")
66
- generate = gr.Button("Generate Music from Image")
67
- with gr.Column():
68
- music_output = gr.Audio(label="Result", type="filepath")
69
- output_text = gr.Textbox(label="Output", elem_id="output-txt", visible=False)
 
 
 
 
 
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()