AlexHung29629 commited on
Commit
2ccd67f
·
verified ·
1 Parent(s): 8d547a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- model = AutoModelForImageTextToText.from_pretrained("AlexHung29629/add_vision_3", torch_dtype=torch.bfloat16, device_map="auto")
136
- tokenizer = AutoTokenizer.from_pretrained("AlexHung29629/add_vision_3")
 
 
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