Spaces:
Running
on
Zero
Running
on
Zero
jiminHuang
commited on
Commit
•
4590c53
1
Parent(s):
340a6dd
Update app.py
Browse files
app.py
CHANGED
@@ -7,9 +7,9 @@ from PIL import Image
|
|
7 |
import torch
|
8 |
import spaces
|
9 |
|
10 |
-
processor = LlavaNextProcessor.from_pretrained("
|
11 |
|
12 |
-
model = LlavaNextForConditionalGeneration.from_pretrained("
|
13 |
model.to("cuda:0")
|
14 |
|
15 |
@spaces.GPU
|
|
|
7 |
import torch
|
8 |
import spaces
|
9 |
|
10 |
+
processor = LlavaNextProcessor.from_pretrained("TheFinAI/FinLLaVA")
|
11 |
|
12 |
+
model = LlavaNextForConditionalGeneration.from_pretrained("TheFinAI/FinLLaVA", torch_dtype=torch.float16, low_cpu_mem_usage=True)
|
13 |
model.to("cuda:0")
|
14 |
|
15 |
@spaces.GPU
|