YashB1 commited on
Commit
af31711
·
verified ·
1 Parent(s): 2d2ac33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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("https://gist.githubusercontent.com/jbrobst/56c13bbbf9d97d187fea01ca62ea5112/raw/e388c4cae20aa53cb5090210a42ebb9b765c0a36/india_states.geojson")
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