Spaces:
Runtime error
Runtime error
Ivan Shelonik
commited on
Commit
·
07f38a9
1
Parent(s):
2cefd9b
upd: cache_dirs
Browse files- api_server.py +1 -1
api_server.py
CHANGED
@@ -30,7 +30,7 @@ elif load_type == 'remote_hub_download':
|
|
30 |
model = keras.models.load_model(hf_hub_download(repo_id=REPO_ID, filename="saved_model.pb"))
|
31 |
elif load_type == 'remote_hub_from_pretrained':
|
32 |
from huggingface_hub import from_pretrained_keras
|
33 |
-
model = from_pretrained_keras(REPO_ID)
|
34 |
|
35 |
|
36 |
# Initialize the Flask application
|
|
|
30 |
model = keras.models.load_model(hf_hub_download(repo_id=REPO_ID, filename="saved_model.pb"))
|
31 |
elif load_type == 'remote_hub_from_pretrained':
|
32 |
from huggingface_hub import from_pretrained_keras
|
33 |
+
model = from_pretrained_keras(REPO_ID, cache_dir='./artifacts')
|
34 |
|
35 |
|
36 |
# Initialize the Flask application
|