Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,11 +60,10 @@ os.environ["PROCESSED_RESULTS"] = f"{os.getcwd()}/proprocess_results"
|
|
| 60 |
|
| 61 |
def tts_from_text(text, tts_dir, voice_choice):
|
| 62 |
|
| 63 |
-
text_to_speech = load_text_to_speech(
|
| 64 |
output = generate_speech(text_to_speech , [text], tts_dir, voice_choice)[0]
|
| 65 |
return output
|
| 66 |
|
| 67 |
-
@spaces.GPU()
|
| 68 |
def speak_to_me(session_id, evt: gr.EventData):
|
| 69 |
detail = getattr(evt, "data", None) or getattr(evt, "_data", {}) or {}
|
| 70 |
|
|
|
|
| 60 |
|
| 61 |
def tts_from_text(text, tts_dir, voice_choice):
|
| 62 |
|
| 63 |
+
text_to_speech = load_text_to_speech(False)
|
| 64 |
output = generate_speech(text_to_speech , [text], tts_dir, voice_choice)[0]
|
| 65 |
return output
|
| 66 |
|
|
|
|
| 67 |
def speak_to_me(session_id, evt: gr.EventData):
|
| 68 |
detail = getattr(evt, "data", None) or getattr(evt, "_data", {}) or {}
|
| 69 |
|