Spaces:
Running
on
Zero
Running
on
Zero
Harry Coultas Blum
commited on
Commit
·
a8149b0
1
Parent(s):
a1a9d33
tryin relative imports
Browse files- app.py +2 -0
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import time
|
|
|
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
import torch
|
|
@@ -92,6 +93,7 @@ It was supposed to be a chicken bacon lettuce tomatoe, but it was fucking shite,
|
|
| 92 |
]
|
| 93 |
|
| 94 |
|
|
|
|
| 95 |
def text_to_speech(text, temperature=0.5, top_k=100, top_p=None, max_duration=60):
|
| 96 |
"""
|
| 97 |
Convert text to speech using the current Vui model
|
|
|
|
| 1 |
import time
|
| 2 |
+
import spaces
|
| 3 |
|
| 4 |
import gradio as gr
|
| 5 |
import torch
|
|
|
|
| 93 |
]
|
| 94 |
|
| 95 |
|
| 96 |
+
@spaces.GPU(duration=30)
|
| 97 |
def text_to_speech(text, temperature=0.5, top_k=100, top_p=None, max_duration=60):
|
| 98 |
"""
|
| 99 |
Convert text to speech using the current Vui model
|
requirements.txt
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
einops
|
| 2 |
huggingface_hub[hf_transfer]
|
|
|
|
| 3 |
inflect
|
| 4 |
gradio
|
| 5 |
numba
|
|
@@ -14,4 +15,4 @@ tiktoken
|
|
| 14 |
torch
|
| 15 |
torchaudio
|
| 16 |
tqdm
|
| 17 |
-
transformers
|
|
|
|
| 1 |
einops
|
| 2 |
huggingface_hub[hf_transfer]
|
| 3 |
+
spaces
|
| 4 |
inflect
|
| 5 |
gradio
|
| 6 |
numba
|
|
|
|
| 15 |
torch
|
| 16 |
torchaudio
|
| 17 |
tqdm
|
| 18 |
+
transformers
|