harp-dev commited on
Commit
0220997
·
verified ·
1 Parent(s): 93bb80c

Describe what each control does to the sound

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -116,8 +116,14 @@ def process_fn(audio_path: str, text_query: str):
116
  if __name__ == "__main__":
117
  with gr.Blocks() as demo:
118
  input_components = [
119
- gr.Audio(type="filepath", label="Input Audio (Mixture)").harp_required(True),
120
- gr.Textbox(label="Text Query", placeholder="e.g. a dog barking"),
 
 
 
 
 
 
121
  ]
122
  output_components = [
123
  gr.Audio(type="filepath", label="Separated Audio").set_info(
 
116
  if __name__ == "__main__":
117
  with gr.Blocks() as demo:
118
  input_components = [
119
+ gr.Audio(type="filepath", label="Input Audio (Mixture)").harp_required(True).set_info((
120
+ "The mixture to pull a sound out of."
121
+ )),
122
+ gr.Textbox(label="Text Query", placeholder="e.g. a dog barking",
123
+ info=(
124
+ "Describe the sound to isolate, such as \"acoustic guitar\" or \"a "
125
+ "dog barking\". Plain words work better than studio terms."
126
+ )),
127
  ]
128
  output_components = [
129
  gr.Audio(type="filepath", label="Separated Audio").set_info(