Spaces:
Running
on
Zero
Running
on
Zero
gokaygokay
commited on
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
|