fffiloni commited on
Commit
80449f7
β€’
1 Parent(s): cf2dc9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,14 +1,14 @@
1
  import gradio as gr
2
  import os
3
 
4
- #img_to_text = gr.Blocks.load(name="spaces/pharma/CLIP-Interrogator")
5
  text_to_music = gr.Interface.load("spaces/fffiloni/text-2-music")
6
 
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}
 
1
  import gradio as gr
2
  import os
3
 
4
+ img_to_text = gr.Blocks.load(name="spaces/pharma/CLIP-Interrogator")
5
  text_to_music = gr.Interface.load("spaces/fffiloni/text-2-music")
6
 
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}