jan-hq commited on
Commit
f17f9e0
·
verified ·
1 Parent(s): d380225

add @spaces.GPU

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -62,6 +62,7 @@ def audio_to_sound_tokens_whisperspeech_transcribe(audio_path):
62
  # print(tokenizer.encode("<|sound_0001|>", add_special_tokens=False))# return the audio tensor
63
  # print(tokenizer.eos_token)
64
 
 
65
  def text_to_audio_file(text):
66
  # gen a random id for the audio file
67
  id = str(uuid.uuid4())
 
62
  # print(tokenizer.encode("<|sound_0001|>", add_special_tokens=False))# return the audio tensor
63
  # print(tokenizer.eos_token)
64
 
65
+ @spaces.GPU
66
  def text_to_audio_file(text):
67
  # gen a random id for the audio file
68
  id = str(uuid.uuid4())