Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -132,8 +132,10 @@ CHAT_TEMPLATE="""{%- set today = strftime_now("%Y-%m-%d") %}
|
|
132 |
|
133 |
if torch.cuda.is_available():
|
134 |
model_id = "mistralai/Mistral-Small-24B-Instruct-2501"
|
135 |
-
|
136 |
-
|
|
|
|
|
137 |
|
138 |
|
139 |
@spaces.GPU
|
|
|
132 |
|
133 |
if torch.cuda.is_available():
|
134 |
model_id = "mistralai/Mistral-Small-24B-Instruct-2501"
|
135 |
+
model_id = "AlexHung29629/add_vision_3"
|
136 |
+
model_id = "AlexHung29629/Draft1"
|
137 |
+
model = AutoModelForImageTextToText.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")
|
138 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
139 |
|
140 |
|
141 |
@spaces.GPU
|