JadS commited on
Commit
a0eb4c0
1 Parent(s): 1a4a31c

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -8,8 +8,8 @@ class EndpointHandler():
8
  def __init__(self, path=""):
9
  # load the optimized model
10
  self.device = "cuda:0"
11
- self.model = AutoModelForVision2Seq.from_pretrained("llava-hf/llava-v1.6-mistral-7b-hf").to(self.device)
12
- self.processor = AutoProcessor.from_pretrained("llava-hf/llava-v1.6-mistral-7b-hf")
13
 
14
  def __call__(self, data: dict[str, Any]) -> str:
15
  """
 
8
  def __init__(self, path=""):
9
  # load the optimized model
10
  self.device = "cuda:0"
11
+ self.model = AutoModelForVision2Seq.from_pretrained("HuggingFaceM4/idefics2-8b").to(self.device)
12
+ self.processor = AutoProcessor.from_pretrained("HuggingFaceM4/idefics2-8b")
13
 
14
  def __call__(self, data: dict[str, Any]) -> str:
15
  """