Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def get_vram_info():
|
|
| 64 |
return {"vram": "CUDA not available"}
|
| 65 |
|
| 66 |
|
| 67 |
-
@spaces.GPU(duration=
|
| 68 |
def encode_text(prompt: str):
|
| 69 |
"""Encode text and return a downloadable pytorch file."""
|
| 70 |
global text_encoder, tokenizer
|
|
|
|
| 64 |
return {"vram": "CUDA not available"}
|
| 65 |
|
| 66 |
|
| 67 |
+
@spaces.GPU(duration=18)
|
| 68 |
def encode_text(prompt: str):
|
| 69 |
"""Encode text and return a downloadable pytorch file."""
|
| 70 |
global text_encoder, tokenizer
|