Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ MUBERT_TOKEN = os.environ.get('MUBERT_TOKEN')
|
|
20 |
img_to_text = gr.Blocks.load(name="spaces/fffiloni/CLIP-Interrogator-2")
|
21 |
|
22 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
23 |
-
|
24 |
minilm = SentenceTransformer('all-MiniLM-L6-v2')
|
25 |
mubert_tags_embeddings = get_mubert_tags_embeddings(minilm)
|
26 |
|
@@ -35,7 +35,7 @@ def get_prompts(uploaded_image, track_duration, gen_intensity, gen_mode):
|
|
35 |
#print(pat)
|
36 |
return music_result, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
37 |
|
38 |
-
|
39 |
|
40 |
|
41 |
|
|
|
20 |
img_to_text = gr.Blocks.load(name="spaces/fffiloni/CLIP-Interrogator-2")
|
21 |
|
22 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
23 |
+
from utils import get_tags_for_prompts, get_mubert_tags_embedding
|
24 |
minilm = SentenceTransformer('all-MiniLM-L6-v2')
|
25 |
mubert_tags_embeddings = get_mubert_tags_embeddings(minilm)
|
26 |
|
|
|
35 |
#print(pat)
|
36 |
return music_result, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
37 |
|
38 |
+
|
39 |
|
40 |
|
41 |
|