Update app.py
Browse files
app.py
CHANGED
@@ -186,17 +186,22 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
186 |
with gr.Tab("Target Sound Extraction"):
|
187 |
# Basic Input: Text prompt
|
188 |
with gr.Row():
|
189 |
-
gt_file_input = gr.Audio(
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
text_input = gr.Textbox(
|
191 |
-
label="
|
192 |
show_label=True,
|
193 |
max_lines=2,
|
194 |
placeholder="Enter your prompt",
|
195 |
-
container=True,
|
196 |
value="The sound of gunshot",
|
197 |
-
|
|
|
198 |
)
|
199 |
-
# Run button
|
200 |
run_button = gr.Button("Extract", scale=1)
|
201 |
|
202 |
# Output Component
|
|
|
186 |
with gr.Tab("Target Sound Extraction"):
|
187 |
# Basic Input: Text prompt
|
188 |
with gr.Row():
|
189 |
+
gt_file_input = gr.Audio(
|
190 |
+
label="Upload Audio to Extract",
|
191 |
+
type="filepath",
|
192 |
+
value="demo/0_mix.wav"
|
193 |
+
)
|
194 |
+
|
195 |
+
with gr.Row():
|
196 |
text_input = gr.Textbox(
|
197 |
+
label="The sound you want to extract/separate",
|
198 |
show_label=True,
|
199 |
max_lines=2,
|
200 |
placeholder="Enter your prompt",
|
|
|
201 |
value="The sound of gunshot",
|
202 |
+
container=True,
|
203 |
+
scale=4
|
204 |
)
|
|
|
205 |
run_button = gr.Button("Extract", scale=1)
|
206 |
|
207 |
# Output Component
|