Spaces:
Runtime error
Runtime error
gokaygokay
commited on
Commit
•
8eabd54
1
Parent(s):
aea5b19
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import PaliGemmaForConditionalGeneration, PaliGemmaProcessor
|
|
3 |
import spaces
|
4 |
import torch
|
5 |
|
6 |
-
model = PaliGemmaForConditionalGeneration.from_pretrained("gokaygokay/sd3-long-captioner"
|
7 |
processor = PaliGemmaProcessor.from_pretrained("gokaygokay/sd3-long-captioner")
|
8 |
|
9 |
@spaces.GPU
|
|
|
3 |
import spaces
|
4 |
import torch
|
5 |
|
6 |
+
model = PaliGemmaForConditionalGeneration.from_pretrained("gokaygokay/sd3-long-captioner").to("cuda").eval()
|
7 |
processor = PaliGemmaProcessor.from_pretrained("gokaygokay/sd3-long-captioner")
|
8 |
|
9 |
@spaces.GPU
|