Spaces:
Running
on
Zero
Running
on
Zero
sanchit-gandhi
commited on
Update app.py
Browse files
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)
|