Spaces:
Sleeping
Sleeping
shaheer-data
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,9 @@ st.markdown('<p style="text-align: center; color: #eaf26f; font-size: 40px; font
|
|
17 |
authkey = os.getenv('YellowRust')
|
18 |
login(token=authkey)
|
19 |
|
|
|
20 |
# Download the model file from Hugging Face
|
21 |
-
model_path = hf_hub_download(repo_id=
|
22 |
|
23 |
# Load the pre-trained model
|
24 |
loaded_model = load_model(model_path)
|
|
|
17 |
authkey = os.getenv('YellowRust')
|
18 |
login(token=authkey)
|
19 |
|
20 |
+
model_id = os.getenv('model_repo_id')
|
21 |
# Download the model file from Hugging Face
|
22 |
+
model_path = hf_hub_download(repo_id=model_id, filename="final_meta_model.keras")
|
23 |
|
24 |
# Load the pre-trained model
|
25 |
loaded_model = load_model(model_path)
|