Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,7 +116,7 @@ async def batch_process_srt_and_audio(script_text, pitch, rate, voice, progress=
|
|
| 116 |
return final_srt_path, final_audio_path
|
| 117 |
|
| 118 |
# Gradio interface function
|
| 119 |
-
async def process_script(script_text, pitch, rate, voice):
|
| 120 |
formatted_rate = f"{'+' if rate > 0 else ''}{int(rate)}%"
|
| 121 |
srt_path, audio_path = await batch_process_srt_and_audio(script_text, pitch, formatted_rate, voice_options[voice])
|
| 122 |
return srt_path, audio_path, audio_path
|
|
|
|
| 116 |
return final_srt_path, final_audio_path
|
| 117 |
|
| 118 |
# Gradio interface function
|
| 119 |
+
async def process_script(script_text, pitch, rate, voice, _):
|
| 120 |
formatted_rate = f"{'+' if rate > 0 else ''}{int(rate)}%"
|
| 121 |
srt_path, audio_path = await batch_process_srt_and_audio(script_text, pitch, formatted_rate, voice_options[voice])
|
| 122 |
return srt_path, audio_path, audio_path
|