freddyaboulton HF Staff commited on
Commit
2d57870
·
1 Parent(s): 1412907
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -54,7 +54,7 @@ def audio_search(audio_tuple, prompt: str):
54
  if i < 5:
55
  styles[i] = 'background-color: rgba(0, 255, 0, 0.3)'
56
  # Last 3 rows: red background with opacity
57
- elif i >= n - 3:
58
  styles[i] = 'background-color: rgba(255, 0, 0, 0.3)'
59
  return styles
60
 
@@ -62,8 +62,8 @@ def audio_search(audio_tuple, prompt: str):
62
  return df.style.apply(style_path_column, subset=['path'])
63
 
64
  sample_text = gr.Textbox(
65
- label="Prompt",
66
- info="Hit Enter to get a prompt from the common voice dataset",
67
  value=get_prompt(),
68
  )
69
  iface = gr.Interface(
@@ -95,7 +95,7 @@ with gr.Blocks() as demo:
95
  gr.Markdown(
96
  f"""
97
  <div style='text-align: center'>
98
- Record or upload an English clip of your voice and we'll find the most similar voices in the <a href="https://huggingface.co/datasets/mozilla-foundation/common_voice_17_0">Common Voice dataset</a>.
99
  </div>
100
  """
101
  )
 
54
  if i < 5:
55
  styles[i] = 'background-color: rgba(0, 255, 0, 0.3)'
56
  # Last 3 rows: red background with opacity
57
+ elif i >= 5:
58
  styles[i] = 'background-color: rgba(255, 0, 0, 0.3)'
59
  return styles
60
 
 
62
  return df.style.apply(style_path_column, subset=['path'])
63
 
64
  sample_text = gr.Textbox(
65
+ label="Suggested Prompt",
66
+ info="Unsure what to record? Use this prompt. Hit Enter to get a new one from the common voice dataset",
67
  value=get_prompt(),
68
  )
69
  iface = gr.Interface(
 
95
  gr.Markdown(
96
  f"""
97
  <div style='text-align: center'>
98
+ Record or upload an English clip of your voice and we'll find the most similar (and dissimilar) voices in the <a href="https://huggingface.co/datasets/mozilla-foundation/common_voice_17_0">Common Voice dataset</a>.
99
  </div>
100
  """
101
  )