Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
|
4 |
-
|
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 |
-
|
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}
|