Spaces:
Runtime error
Runtime error
cocktailpeanut
commited on
Commit
·
27c3ba4
1
Parent(s):
d143d17
update
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import spaces
|
2 |
import gradio as gr
|
3 |
import torch
|
4 |
|
@@ -45,7 +45,7 @@ examples = [
|
|
45 |
]
|
46 |
|
47 |
|
48 |
-
|
49 |
def gen_tts(text, description):
|
50 |
inputs = tokenizer(description, return_tensors="pt").to(device)
|
51 |
prompt = tokenizer(text, return_tensors="pt").to(device)
|
|
|
1 |
+
#import spaces
|
2 |
import gradio as gr
|
3 |
import torch
|
4 |
|
|
|
45 |
]
|
46 |
|
47 |
|
48 |
+
#@spaces.GPU
|
49 |
def gen_tts(text, description):
|
50 |
inputs = tokenizer(description, return_tensors="pt").to(device)
|
51 |
prompt = tokenizer(text, return_tensors="pt").to(device)
|