Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,10 @@ def download_file(url, output_path):
|
|
15 |
st.error(f"Failed to download {url}. HTTP status code: {response.status_code}")
|
16 |
st.stop()
|
17 |
|
|
|
|
|
|
|
|
|
18 |
# Local paths for the downloaded files
|
19 |
model_path = "random_forest_weather_model.pkl"
|
20 |
encoder_path = "label_encoders.pkl"
|
|
|
15 |
st.error(f"Failed to download {url}. HTTP status code: {response.status_code}")
|
16 |
st.stop()
|
17 |
|
18 |
+
# Updated URLs to the model and label encoder files
|
19 |
+
model_url = "https://huggingface.co/spaces/amornpan/weather-prediction-app/raw/main/random_forest_weather_model.pkl"
|
20 |
+
encoder_url = "https://huggingface.co/spaces/amornpan/weather-prediction-app/raw/main/label_encoders.pkl"
|
21 |
+
|
22 |
# Local paths for the downloaded files
|
23 |
model_path = "random_forest_weather_model.pkl"
|
24 |
encoder_path = "label_encoders.pkl"
|