JacobLinCool commited on
Commit
498736f
·
verified ·
1 Parent(s): 0b69aa4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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: