Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ def get_matches(text_query):
|
|
| 38 |
matches = compare_text_to_audio_embeddings(text_query, "audio_embeddings_v3.pkl")
|
| 39 |
|
| 40 |
# Format the output
|
| 41 |
-
output = f"
|
| 42 |
|
| 43 |
for filename, url, similarity in matches[:3]:
|
| 44 |
output += f"{similarity:.4f}\n"
|
|
@@ -58,7 +58,7 @@ def get_matches(text_query):
|
|
| 58 |
|
| 59 |
# Create the Gradio interface
|
| 60 |
with gr.Blocks() as demo:
|
| 61 |
-
gr.Markdown("#
|
| 62 |
with gr.Row():
|
| 63 |
text_input = gr.Textbox(label="Enter your text query")
|
| 64 |
output = gr.Markdown(label="Results")
|
|
|
|
| 38 |
matches = compare_text_to_audio_embeddings(text_query, "audio_embeddings_v3.pkl")
|
| 39 |
|
| 40 |
# Format the output
|
| 41 |
+
output = f"<h2>Top 5 matches for '{text_query}</h2>'\n\n"
|
| 42 |
|
| 43 |
for filename, url, similarity in matches[:3]:
|
| 44 |
output += f"{similarity:.4f}\n"
|
|
|
|
| 58 |
|
| 59 |
# Create the Gradio interface
|
| 60 |
with gr.Blocks() as demo:
|
| 61 |
+
gr.Markdown("# Music from Vibe")
|
| 62 |
with gr.Row():
|
| 63 |
text_input = gr.Textbox(label="Enter your text query")
|
| 64 |
output = gr.Markdown(label="Results")
|