Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -104,6 +104,7 @@ def start_listen_ui():
|
|
| 104 |
return gr.update(interactive=False, value="⏳ Generating speech...")
|
| 105 |
|
| 106 |
|
|
|
|
| 107 |
def speak_translation(translated_text: str, progress=gr.Progress()):
|
| 108 |
progress(0.3, desc="Generating speech...")
|
| 109 |
audio_path = synthesize_speech(translated_text)
|
|
|
|
| 104 |
return gr.update(interactive=False, value="⏳ Generating speech...")
|
| 105 |
|
| 106 |
|
| 107 |
+
@spaces.GPU(duration=15)
|
| 108 |
def speak_translation(translated_text: str, progress=gr.Progress()):
|
| 109 |
progress(0.3, desc="Generating speech...")
|
| 110 |
audio_path = synthesize_speech(translated_text)
|