sanchit-gandhi commited on
Commit
b3aee24
·
verified ·
1 Parent(s): d4e1d20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -37,6 +37,7 @@ vctk_model.to(device)
37
  @spaces.GPU
38
  def ljs_forward(text, speaking_rate=1.0):
39
  inputs = ljs_tokenizer(text, return_tensors="pt")
 
40
 
41
  ljs_model.speaking_rate = speaking_rate
42
  set_seed(555)
@@ -50,6 +51,7 @@ def ljs_forward(text, speaking_rate=1.0):
50
  @spaces.GPU
51
  def vctk_forward(text, speaking_rate=1.0, speaker_id=1):
52
  inputs = vctk_tokenizer(text, return_tensors="pt")
 
53
 
54
  vctk_model.speaking_rate = speaking_rate
55
  set_seed(555)
 
37
  @spaces.GPU
38
  def ljs_forward(text, speaking_rate=1.0):
39
  inputs = ljs_tokenizer(text, return_tensors="pt")
40
+ inputs = inputs.to(ljs_model.device)
41
 
42
  ljs_model.speaking_rate = speaking_rate
43
  set_seed(555)
 
51
  @spaces.GPU
52
  def vctk_forward(text, speaking_rate=1.0, speaker_id=1):
53
  inputs = vctk_tokenizer(text, return_tensors="pt")
54
+ inputs = inputs.to(vctk_model.device)
55
 
56
  vctk_model.speaking_rate = speaking_rate
57
  set_seed(555)