Spaces:
Runtime error
Runtime error
Ivan Shelonik
commited on
Commit
·
0792f4b
1
Parent(s):
165b779
upd: load model to .pb
Browse files- api_server.py +2 -2
api_server.py
CHANGED
@@ -15,8 +15,8 @@ LOCAL = False
|
|
15 |
if LOCAL is True:
|
16 |
model = keras.models.load_model('artifacts/models/mnist_model.h5')
|
17 |
else:
|
18 |
-
REPO_ID = "1vash/
|
19 |
-
FILENAME = "
|
20 |
model = keras.models.load_model(hf_hub_download(repo_id=REPO_ID, filename=FILENAME))
|
21 |
|
22 |
# Initialize the Flask application
|
|
|
15 |
if LOCAL is True:
|
16 |
model = keras.models.load_model('artifacts/models/mnist_model.h5')
|
17 |
else:
|
18 |
+
REPO_ID = "1vash/mnist_demo_model"
|
19 |
+
FILENAME = "saved_model.pb"
|
20 |
model = keras.models.load_model(hf_hub_download(repo_id=REPO_ID, filename=FILENAME))
|
21 |
|
22 |
# Initialize the Flask application
|