Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -93,6 +93,7 @@ def generate_audio(tts_text, prompt_text, prompt_wav_upload, prompt_wav_record,
|
|
93 |
return (target_sr, audio_data)
|
94 |
|
95 |
|
|
|
96 |
def generate_text(prompt_wav_upload, prompt_wav_record, select_which):
|
97 |
# Determine which input to use based on the selection in select_which
|
98 |
if select_which == "上傳檔案" and prompt_wav_upload is not None:
|
|
|
93 |
return (target_sr, audio_data)
|
94 |
|
95 |
|
96 |
+
@spaces.GPU
|
97 |
def generate_text(prompt_wav_upload, prompt_wav_record, select_which):
|
98 |
# Determine which input to use based on the selection in select_which
|
99 |
if select_which == "上傳檔案" and prompt_wav_upload is not None:
|