OpenSound commited on
Commit
34394c9
·
verified ·
1 Parent(s): 4e581e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -262,9 +262,16 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
262
 
263
  with gr.Tab("Audio Editing and Inpainting"):
264
  # Input: Upload audio file
265
-
 
 
266
  gt_file_input = gr.Audio(label="Upload Audio to Edit", type="filepath", value="edit_example.wav")
267
 
 
 
 
 
 
268
  with gr.Row():
269
  # Text prompt for editing
270
  text_edit_input = gr.Textbox(
@@ -279,12 +286,6 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
279
 
280
  # Run button for editing
281
  edit_button = gr.Button("Generate", scale=1)
282
-
283
- edit_explanation = gr.Markdown(value="**Edit Start**: The time when the edit begins. \n\n**Edit Length**: The duration of the segment to be edited. \n\n**Outpainting**: If the edit extends beyond the audio's length, Outpainting Mode will automatically activate.")
284
-
285
- # Mask settings
286
- mask_start = gr.Number(label="Edit Start (seconds)", value=2.0)
287
- mask_length = gr.Slider(minimum=0.5, maximum=10, step=0.5, value=3, label="Edit Length (seconds)")
288
 
289
  # Output Component for edited audio
290
  edited_result = gr.Audio(label="Edited Audio", type="numpy")
 
262
 
263
  with gr.Tab("Audio Editing and Inpainting"):
264
  # Input: Upload audio file
265
+
266
+ edit_explanation = gr.Markdown(value="**Edit Start**: The time when the edit begins. \n**Edit Length**: The duration of the segment to be edited. \n**Outpainting**: If the edit extends beyond the audio's length, Outpainting Mode will automatically activate.")
267
+
268
  gt_file_input = gr.Audio(label="Upload Audio to Edit", type="filepath", value="edit_example.wav")
269
 
270
+ with gr.Row():
271
+ # Mask settings
272
+ mask_start = gr.Number(label="Edit Start (seconds)", value=2.0)
273
+ mask_length = gr.Slider(minimum=0.5, maximum=10, step=0.5, value=3, label="Edit Length (seconds)")
274
+
275
  with gr.Row():
276
  # Text prompt for editing
277
  text_edit_input = gr.Textbox(
 
286
 
287
  # Run button for editing
288
  edit_button = gr.Button("Generate", scale=1)
 
 
 
 
 
 
289
 
290
  # Output Component for edited audio
291
  edited_result = gr.Audio(label="Edited Audio", type="numpy")