multimodalart HF staff commited on
Commit
8d5a618
1 Parent(s): a07119c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ def preprocess(text):
63
  text = text.replace(abv, separate_abb(abv))
64
  return text
65
 
66
-
67
  def gen_tts(text, description):
68
  inputs = tokenizer(description, return_tensors="pt").to(device)
69
  prompt = tokenizer(preprocess(text), return_tensors="pt").to(device)
 
63
  text = text.replace(abv, separate_abb(abv))
64
  return text
65
 
66
+ @spaces.GPU
67
  def gen_tts(text, description):
68
  inputs = tokenizer(description, return_tensors="pt").to(device)
69
  prompt = tokenizer(preprocess(text), return_tensors="pt").to(device)