Spaces:
Build error
Build error
Trent
commited on
Commit
•
0e0bacc
1
Parent(s):
532be59
Update model name
Browse files
utils.py
CHANGED
@@ -22,8 +22,8 @@ def load_index(img_file):
|
|
22 |
return filenames, index
|
23 |
|
24 |
@st.cache(allow_output_mutation=True)
|
25 |
-
def load_model(model_name="koclip/koclip"):
|
26 |
-
assert model_name in {"koclip/koclip", "koclip/koclip-large"}
|
27 |
model = FlaxHybridCLIP.from_pretrained(model_name)
|
28 |
processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
|
29 |
processor.tokenizer = AutoTokenizer.from_pretrained("klue/roberta-large")
|
|
|
22 |
return filenames, index
|
23 |
|
24 |
@st.cache(allow_output_mutation=True)
|
25 |
+
def load_model(model_name="koclip/koclip-base"):
|
26 |
+
assert model_name in {"koclip/koclip-base", "koclip/koclip-large"}
|
27 |
model = FlaxHybridCLIP.from_pretrained(model_name)
|
28 |
processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
|
29 |
processor.tokenizer = AutoTokenizer.from_pretrained("klue/roberta-large")
|