morthens commited on
Commit
8770a76
·
verified ·
1 Parent(s): 25bdc53

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -5,7 +5,7 @@ from PIL import Image
5
  from transformers import Qwen2VLForConditionalGeneration, AutoProcessor
6
 
7
  class EndpointHandler:
8
- def __init__(self, model_name: str):
9
  # Load the model and processor
10
  self.model = Qwen2VLForConditionalGeneration.from_pretrained(
11
  model_name,
 
5
  from transformers import Qwen2VLForConditionalGeneration, AutoProcessor
6
 
7
  class EndpointHandler:
8
+ def __init__(self, model_name: str ="morthens/qwen2-vl-inference"):
9
  # Load the model and processor
10
  self.model = Qwen2VLForConditionalGeneration.from_pretrained(
11
  model_name,