Spaces:
Runtime error
Runtime error
update
Browse files- app.py +1 -1
- images/dell.jpg +0 -0
- images/xiaomi.jpg +0 -0
- models/vsa_model.py +1 -1
app.py
CHANGED
@@ -6,7 +6,7 @@ from models.vsa_prompt import COCO_CLASSES
|
|
6 |
SAMPLES = {
|
7 |
"images/iclr.jpg": ("What prize did this paper win in 2024?", ", ".join(COCO_CLASSES)),
|
8 |
"images/tesla.jpg": ("What's the income of this company?", "car"),
|
9 |
-
"images/
|
10 |
"images/leshi.jpg": ("Provide information about new products of this brand of potato chips in 2024.", ", ".join(COCO_CLASSES)),
|
11 |
}
|
12 |
SAMPLE_IMAGES = list(SAMPLES.keys())
|
|
|
6 |
SAMPLES = {
|
7 |
"images/iclr.jpg": ("What prize did this paper win in 2024?", ", ".join(COCO_CLASSES)),
|
8 |
"images/tesla.jpg": ("What's the income of this company?", "car"),
|
9 |
+
"images/dell.jpg": ("I want to replace this brand of laptop, please give me some suggestions on new products in 2024.", ", ".join(COCO_CLASSES)),
|
10 |
"images/leshi.jpg": ("Provide information about new products of this brand of potato chips in 2024.", ", ".join(COCO_CLASSES)),
|
11 |
}
|
12 |
SAMPLE_IMAGES = list(SAMPLES.keys())
|
images/dell.jpg
ADDED
images/xiaomi.jpg
DELETED
Binary file (271 kB)
|
|
models/vsa_model.py
CHANGED
@@ -126,7 +126,7 @@ class VLM:
|
|
126 |
load_8bit: bool = False,
|
127 |
load_4bit: bool = True,
|
128 |
temperature: float = 0.2,
|
129 |
-
max_new_tokens: int =
|
130 |
):
|
131 |
disable_torch_init()
|
132 |
model_name = get_model_name_from_path(model_path)
|
|
|
126 |
load_8bit: bool = False,
|
127 |
load_4bit: bool = True,
|
128 |
temperature: float = 0.2,
|
129 |
+
max_new_tokens: int = 1024,
|
130 |
):
|
131 |
disable_torch_init()
|
132 |
model_name = get_model_name_from_path(model_path)
|