gokaygokay commited on
Commit
8eabd54
1 Parent(s): aea5b19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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", device="cuda").eval()
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