fffiloni commited on
Commit
01664f8
1 Parent(s): d28ba5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -8,7 +8,7 @@ from spectro import wav_bytes_from_spectrogram_image
8
  from diffusers import StableDiffusionPipeline
9
  from diffusers import StableDiffusionImg2ImgPipeline
10
 
11
- from share_btn import community_icon_html, loading_icon_html, share_js
12
 
13
  device = "cuda"
14
  MODEL_ID = "riffusion/riffusion-model-v1"
@@ -221,14 +221,14 @@ with gr.Blocks(css="style.css") as demo:
221
  spectrogram_output = gr.Image(label="spectrogram image result", elem_id="img-out")
222
  sound_output = gr.Audio(type='filepath', label="spectrogram sound", elem_id="music-out")
223
 
224
- with gr.Group(elem_id="share-btn-container"):
225
- community_icon = gr.HTML(community_icon_html, visible=False)
226
- loading_icon = gr.HTML(loading_icon_html, visible=False)
227
- share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
228
 
229
  gr.HTML(article)
230
 
231
  send_btn.click(predict, inputs=[prompt_input, negative_prompt, audio_input, duration_input], outputs=[spectrogram_output, sound_output, share_button, community_icon, loading_icon])
232
- share_button.click(None, [], [], _js=share_js)
233
 
234
  demo.queue(max_size=250).launch(debug=True)
 
8
  from diffusers import StableDiffusionPipeline
9
  from diffusers import StableDiffusionImg2ImgPipeline
10
 
11
+ #from share_btn import community_icon_html, loading_icon_html, share_js
12
 
13
  device = "cuda"
14
  MODEL_ID = "riffusion/riffusion-model-v1"
 
221
  spectrogram_output = gr.Image(label="spectrogram image result", elem_id="img-out")
222
  sound_output = gr.Audio(type='filepath', label="spectrogram sound", elem_id="music-out")
223
 
224
+ #with gr.Group(elem_id="share-btn-container"):
225
+ # community_icon = gr.HTML(community_icon_html, visible=False)
226
+ # loading_icon = gr.HTML(loading_icon_html, visible=False)
227
+ # share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
228
 
229
  gr.HTML(article)
230
 
231
  send_btn.click(predict, inputs=[prompt_input, negative_prompt, audio_input, duration_input], outputs=[spectrogram_output, sound_output, share_button, community_icon, loading_icon])
232
+ #share_button.click(None, [], [], _js=share_js)
233
 
234
  demo.queue(max_size=250).launch(debug=True)