Sylvain Filoni commited on
Commit
5185154
โ€ข
1 Parent(s): 7c7eec0

forgotten variable

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ from share_btn import community_icon_html, loading_icon_html, share_js
21
  def get_prompts(uploaded_image, track_duration, gen_intensity):
22
  print("calling clip interrogator")
23
  #prompt = img_to_text(uploaded_image, "ViT-L (best for Stable Diffusion 1.*)", "fast", fn_index=1)[0]
24
- img_to_text(uploaded_image, 'fast', 4, fn_index=1)[0]
25
  print(prompt)
26
  music_result = generate_track_by_prompt(prompt, track_duration, gen_intensity)
27
  print(music_result)
 
21
  def get_prompts(uploaded_image, track_duration, gen_intensity):
22
  print("calling clip interrogator")
23
  #prompt = img_to_text(uploaded_image, "ViT-L (best for Stable Diffusion 1.*)", "fast", fn_index=1)[0]
24
+ prompt = img_to_text(uploaded_image, 'fast', 4, fn_index=1)[0]
25
  print(prompt)
26
  music_result = generate_track_by_prompt(prompt, track_duration, gen_intensity)
27
  print(music_result)