multimodalart HF staff commited on
Commit
58cf143
1 Parent(s): 06c1a5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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"## Top 5 matches for '{text_query}'\n\n"
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("# Text to Audio Comparison")
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")