Spaces:
Running
on
Zero
Running
on
Zero
add @spaces.GPU
Browse files
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())
|