fffiloni commited on
Commit
f533c9b
β€’
1 Parent(s): 40687c7

changed queue size

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -8,7 +8,7 @@ def get_prompts(uploaded_image):
8
  print("calling Clip interrogator ...")
9
 
10
  prompt = img_to_text(uploaded_image, fn_index=1)[0]
11
- #prompt = "trying to find the right method index"
12
  print(f"""β€”β€”β€”
13
  Got prompt result:
14
  {prompt}
@@ -23,8 +23,6 @@ def get_music(prompt):
23
  print("calling now mubert ....")
24
  result = text_to_music(prompt, fn_index=0)
25
  print(result)
26
- #output = os.path.join(result)
27
- #print(output)
28
  return result
29
 
30
  with gr.Blocks() as demo:
@@ -55,4 +53,4 @@ with gr.Blocks() as demo:
55
  music_output = gr.Audio(label="Result", type="filepath")
56
  generate.click(get_prompts, inputs=[input_img], outputs=[music_output])
57
 
58
- demo.launch()
 
8
  print("calling Clip interrogator ...")
9
 
10
  prompt = img_to_text(uploaded_image, fn_index=1)[0]
11
+
12
  print(f"""β€”β€”β€”
13
  Got prompt result:
14
  {prompt}
 
23
  print("calling now mubert ....")
24
  result = text_to_music(prompt, fn_index=0)
25
  print(result)
 
 
26
  return result
27
 
28
  with gr.Blocks() as demo:
 
53
  music_output = gr.Audio(label="Result", type="filepath")
54
  generate.click(get_prompts, inputs=[input_img], outputs=[music_output])
55
 
56
+ demo.queue(max_size=32).launch()