Update server.py
Browse files
server.py
CHANGED
@@ -36,8 +36,8 @@ def load_models():
|
|
36 |
global processor, clip_model, model
|
37 |
|
38 |
# Load CLIP model and processor
|
39 |
-
processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-
|
40 |
-
clip_model = CLIPModel.from_pretrained("openai/clip-vit-base-
|
41 |
|
42 |
# Initialize MIDM model
|
43 |
input_dim = 10 # Using first 10 features as in your notebook
|
|
|
36 |
global processor, clip_model, model
|
37 |
|
38 |
# Load CLIP model and processor
|
39 |
+
processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch14")
|
40 |
+
clip_model = CLIPModel.from_pretrained("openai/clip-vit-base-patch14")
|
41 |
|
42 |
# Initialize MIDM model
|
43 |
input_dim = 10 # Using first 10 features as in your notebook
|