Update app.py
Browse files
app.py
CHANGED
@@ -174,7 +174,7 @@ def process_video(voice, model, text, audio_file, progress=gr.Progress()):
|
|
174 |
# Handle audio input (either text-to-speech or uploaded file)
|
175 |
if audio_file is not None:
|
176 |
progress(0.1, desc="Processing uploaded audio...")
|
177 |
-
audio_path = process_uploaded_audio(audio_file
|
178 |
if not audio_path:
|
179 |
return None, "Failed to process uploaded audio file."
|
180 |
elif text:
|
@@ -262,8 +262,8 @@ def create_interface():
|
|
262 |
with gr.Group() as audio_group:
|
263 |
audio_input = gr.Audio(
|
264 |
label="Upload Audio",
|
265 |
-
|
266 |
-
|
267 |
)
|
268 |
|
269 |
model_dropdown = gr.Dropdown(
|
|
|
174 |
# Handle audio input (either text-to-speech or uploaded file)
|
175 |
if audio_file is not None:
|
176 |
progress(0.1, desc="Processing uploaded audio...")
|
177 |
+
audio_path = process_uploaded_audio(audio_file, session_id)
|
178 |
if not audio_path:
|
179 |
return None, "Failed to process uploaded audio file."
|
180 |
elif text:
|
|
|
262 |
with gr.Group() as audio_group:
|
263 |
audio_input = gr.Audio(
|
264 |
label="Upload Audio",
|
265 |
+
type="filepath",
|
266 |
+
format="mp3"
|
267 |
)
|
268 |
|
269 |
model_dropdown = gr.Dropdown(
|