Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
0a4ff15
1
Parent(s):
8b1a278
Add progress tracker to the UI
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ examples = [
|
|
40 |
|
41 |
|
42 |
@spaces.GPU
|
43 |
-
def gen_tts(text, description):
|
44 |
inputs = tokenizer(description, return_tensors="pt").to(device)
|
45 |
prompt = tokenizer(text, return_tensors="pt").to(device)
|
46 |
|
|
|
40 |
|
41 |
|
42 |
@spaces.GPU
|
43 |
+
def gen_tts(text, description, progress=gr.Progress(track_tqdm=True)):
|
44 |
inputs = tokenizer(description, return_tensors="pt").to(device)
|
45 |
prompt = tokenizer(text, return_tensors="pt").to(device)
|
46 |
|