Sylvain Filoni commited on
Commit
8252714
โ€ข
1 Parent(s): 0ac1d72

variable missing

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,11 +17,11 @@ img_to_text = gr.Blocks.load(name="spaces/pharma/CLIP-Interrogator")
17
 
18
  from share_btn import community_icon_html, loading_icon_html, share_js
19
 
20
- def get_prompts(uploaded_image):
21
 
22
  prompt = img_to_text(uploaded_image, "ViT-L (best for Stable Diffusion 1.*)", "fast", fn_index=1)[0]
23
 
24
- music_result = generate_track_by_prompt(prompt, duration, gen_intensity, audio_format)
25
 
26
  return music_result[0], gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
27
 
 
17
 
18
  from share_btn import community_icon_html, loading_icon_html, share_js
19
 
20
+ def get_prompts(uploaded_image, track_duration, gen_intensity):
21
 
22
  prompt = img_to_text(uploaded_image, "ViT-L (best for Stable Diffusion 1.*)", "fast", fn_index=1)[0]
23
 
24
+ music_result = generate_track_by_prompt(prompt, track_duration, gen_intensity)
25
 
26
  return music_result[0], gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
27