Spaces:
Running
on
Zero
Running
on
Zero
alakxender
commited on
Commit
•
695c06a
1
Parent(s):
5157bc3
gpu
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def tranlate(text:str,model_name:str):
|
|
20 |
else:
|
21 |
return t5_tranlaste(text,model_name)
|
22 |
|
23 |
-
@spaces.GPU(duration=
|
24 |
def t5_tranlaste(text:str,model_name:str):
|
25 |
|
26 |
model = T5ForConditionalGeneration.from_pretrained(models[model_name], device_map="auto")
|
|
|
20 |
else:
|
21 |
return t5_tranlaste(text,model_name)
|
22 |
|
23 |
+
@spaces.GPU(duration=30)
|
24 |
def t5_tranlaste(text:str,model_name:str):
|
25 |
|
26 |
model = T5ForConditionalGeneration.from_pretrained(models[model_name], device_map="auto")
|