Spaces:
Build error
Build error
Vivien commited on
Commit ·
9033a8d
1
Parent(s): 8d49b55
Change labels for the models
Browse files4 unmodified lines567891011153 unmodified lines1651661671681691701711721731744 unmodified linesfrom transformers import CLIPProcessor, CLIPModelfrom st_clickable_images import clickable_imagesMODEL_NAMES = ["base-patch32", "base-patch16", "large-patch14-336"] #, "large-patch14", "large-patch14-336"]@st.cache(allow_output_mutation=True)153 unmodified linescorpus = st.radio("", ["Unsplash", "Movies"])models_dict = {"ViT-B/32 (small)": "base-patch32","ViT-B/16 (medium)": "base-patch16",#"ViT-L/14 (slow)": "large-patch14","ViT-L/14@336px (large)": "large-patch14-336",}if "Comparison" in mode:4 unmodified lines56789101112131415153 unmodified lines1691701711721731741751761771784 unmodified linesfrom transformers import CLIPProcessor, CLIPModelfrom st_clickable_images import clickable_imagesMODEL_NAMES = ["base-patch32","base-patch16","large-patch14-336",] # , "large-patch14", "large-patch14-336"]@st.cache(allow_output_mutation=True)153 unmodified linescorpus = st.radio("", ["Unsplash", "Movies"])models_dict = {"ViT-B/32 (quicker)": "base-patch32","ViT-B/16 (average)": "base-patch16",# "ViT-L/14 (slow)": "large-patch14","ViT-L/14@336px (slower)": "large-patch14-336",}if "Comparison" in mode:
app.py+9-5