Spaces:
Sleeping
Sleeping
storesource
commited on
Commit
•
f1f8687
1
Parent(s):
2c9bd78
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ from transformers import AutoModel
|
|
15 |
#@st.cache(allow_output_mutation=True) # Allow model mutation for prediction
|
16 |
def load_model():
|
17 |
try:
|
18 |
-
|
19 |
-
model = AutoModel.from_pretrained("tomeheya/IM-417-128x128-classification")
|
20 |
print("Model loaded successfully!")
|
21 |
return model
|
22 |
except Exception as e:
|
|
|
15 |
#@st.cache(allow_output_mutation=True) # Allow model mutation for prediction
|
16 |
def load_model():
|
17 |
try:
|
18 |
+
model = from_pretrained_keras("tomeheya/IM-417-128x128-classification", force_download=True)
|
19 |
+
#model = AutoModel.from_pretrained("tomeheya/IM-417-128x128-classification")
|
20 |
print("Model loaded successfully!")
|
21 |
return model
|
22 |
except Exception as e:
|