Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def generate(
|
|
| 16 |
precision=torch.float16,
|
| 17 |
):
|
| 18 |
tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-small")
|
| 19 |
-
model = T5ForConditionalGeneration.from_pretrained("roborovski/superprompt-v1", torch_dtype=
|
| 20 |
|
| 21 |
if torch.cuda.is_available():
|
| 22 |
device = "cuda"
|
|
|
|
| 16 |
precision=torch.float16,
|
| 17 |
):
|
| 18 |
tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-small")
|
| 19 |
+
model = T5ForConditionalGeneration.from_pretrained("roborovski/superprompt-v1", torch_dtype=torch.float16)
|
| 20 |
|
| 21 |
if torch.cuda.is_available():
|
| 22 |
device = "cuda"
|