Update app.py
Browse files
app.py
CHANGED
|
@@ -236,6 +236,7 @@ import os
|
|
| 236 |
|
| 237 |
# Set the token
|
| 238 |
token = os.getenv("HF_TOKEN") # Replace "YOUR_AUTHENTICATION_TOKEN" with your actual token
|
|
|
|
| 239 |
|
| 240 |
# Login using the token
|
| 241 |
|
|
@@ -398,7 +399,7 @@ df["Timestamp"] = pd.to_datetime(df["Timestamp"])
|
|
| 398 |
|
| 399 |
import geopandas as gpd
|
| 400 |
file_path = "india_states.geojson"
|
| 401 |
-
india = gpd.read_file("
|
| 402 |
india.loc[india['ST_NM'].isin(['Ladakh', 'Jammu & Kashmir']), 'ST_NM'] = 'Jammu and Kashmir'
|
| 403 |
|
| 404 |
|
|
|
|
| 236 |
|
| 237 |
# Set the token
|
| 238 |
token = os.getenv("HF_TOKEN") # Replace "YOUR_AUTHENTICATION_TOKEN" with your actual token
|
| 239 |
+
shape_file = os.getenv("SHAPE_FILE")
|
| 240 |
|
| 241 |
# Login using the token
|
| 242 |
|
|
|
|
| 399 |
|
| 400 |
import geopandas as gpd
|
| 401 |
file_path = "india_states.geojson"
|
| 402 |
+
india = gpd.read_file(f"{shape_file}")
|
| 403 |
india.loc[india['ST_NM'].isin(['Ladakh', 'Jammu & Kashmir']), 'ST_NM'] = 'Jammu and Kashmir'
|
| 404 |
|
| 405 |
|