echarlaix HF Staff commited on
Commit
bc84cb4
·
1 Parent(s): 6240c5f

update model with ov counterpart

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -14,10 +14,9 @@ from optimum.intel import OVModelForVisualCausalLM
14
  # model_id = "echarlaix/SmolVLM2-2.2B-Instruct-openvino"
15
  # model_id = "echarlaix/SmolVLM-256M-Instruct-openvino"
16
  model_id = "echarlaix/SmolVLM2-500M-Video-Instruct-openvino"
17
- model_id = "HuggingFaceTB/SmolVLM2-500M-Video-Instruct"
18
 
19
  processor = AutoProcessor.from_pretrained(model_id)
20
- model = AutoModelForImageTextToText.from_pretrained(model_id)
21
 
22
 
23
  def model_inference(input_dict, history, max_tokens):
 
14
  # model_id = "echarlaix/SmolVLM2-2.2B-Instruct-openvino"
15
  # model_id = "echarlaix/SmolVLM-256M-Instruct-openvino"
16
  model_id = "echarlaix/SmolVLM2-500M-Video-Instruct-openvino"
 
17
 
18
  processor = AutoProcessor.from_pretrained(model_id)
19
+ model = OVModelForVisualCausalLM.from_pretrained(model_id)
20
 
21
 
22
  def model_inference(input_dict, history, max_tokens):