Update handler.py
Browse files- 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,
|