multimodalart HF staff commited on
Commit
0a4ff15
1 Parent(s): 8b1a278

Add progress tracker to the UI

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