Spaces:
Running
Running
Fix loading the updated model
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ from medclip.modeling_hybrid_clip import FlaxHybridCLIP
|
|
11 |
|
12 |
@st.cache(allow_output_mutation=True)
|
13 |
def load_model():
|
14 |
-
model = FlaxHybridCLIP.from_pretrained("flax-community/medclip-roco", _do_init=False)
|
15 |
processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
|
16 |
return model, processor
|
17 |
|
|
|
11 |
|
12 |
@st.cache(allow_output_mutation=True)
|
13 |
def load_model():
|
14 |
+
model, _ = FlaxHybridCLIP.from_pretrained("flax-community/medclip-roco", _do_init=False)
|
15 |
processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
|
16 |
return model, processor
|
17 |
|