Restrict input to wav format
Browse files
app.py
CHANGED
@@ -313,7 +313,7 @@ with gr.Blocks(css=css) as demo:
|
|
313 |
|
314 |
with gr.Tab("Audio-to-Audio"):
|
315 |
prompt_img2img = gr.Textbox(label="Prompt")
|
316 |
-
audio_in_img2img = gr.Audio(label="Audio Reference", type="filepath")
|
317 |
prompt_strength = gr.Slider(label="Prompt Strength", minimum=0.0, maximum=1.0, step=0.1, value=0.7)
|
318 |
submit_btn_img2img = gr.Button("Submit")
|
319 |
audio_out_img2img = gr.Audio(label="Audio Ressult")
|
@@ -340,7 +340,7 @@ with gr.Blocks(css=css) as demo:
|
|
340 |
|
341 |
with gr.Tab("Audio InPainting"):
|
342 |
prompt_inp = gr.Textbox(label="Prompt")
|
343 |
-
audio_in_inp = gr.Audio(label="Audio Reference", type="filepath")
|
344 |
|
345 |
audio_in_spec = gr.Image(label="Audio IN spectrogram")
|
346 |
mask_start_point = gr.Slider(label="Mask Start point", minimum=0, maximum=1024, step=1, value=256)
|
|
|
313 |
|
314 |
with gr.Tab("Audio-to-Audio"):
|
315 |
prompt_img2img = gr.Textbox(label="Prompt")
|
316 |
+
audio_in_img2img = gr.Audio(label="Audio Reference", type="filepath", format="wav")
|
317 |
prompt_strength = gr.Slider(label="Prompt Strength", minimum=0.0, maximum=1.0, step=0.1, value=0.7)
|
318 |
submit_btn_img2img = gr.Button("Submit")
|
319 |
audio_out_img2img = gr.Audio(label="Audio Ressult")
|
|
|
340 |
|
341 |
with gr.Tab("Audio InPainting"):
|
342 |
prompt_inp = gr.Textbox(label="Prompt")
|
343 |
+
audio_in_inp = gr.Audio(label="Audio Reference", type="filepath", format="wav")
|
344 |
|
345 |
audio_in_spec = gr.Image(label="Audio IN spectrogram")
|
346 |
mask_start_point = gr.Slider(label="Mask Start point", minimum=0, maximum=1024, step=1, value=256)
|