File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 66
77# Fetch processed data from EO repository
88def fetch_processed_data ():
9- response = requests .get ('labels_counts.Json, ' )
9+ response = requests .get ('https://eoagritool-cwfzfndaazauawex.canadacentral-01.azurewebsites.net/ labels_counts.json ' )
1010 if response .status_code == 200 :
1111 return response .json ()
1212 else :
1313 return {"error" : "Failed to fetch data" }
1414
15- @app .route ("labels_counts.json" )
15+ @app .route ("/ labels_counts.json" )
1616def api_processed_data ():
1717 data = fetch_processed_data ()
1818 return jsonify (data )
@@ -30,4 +30,4 @@ def home():
3030 processed_data = processed_data )
3131
3232if __name__ == "__main__" :
33- app .run (host = "https://eoagritool-cwfzfndaazauawex.canadacentral-01.azurewebsites.net " , port = 8000 , debug = True )
33+ app .run (host = "0.0.0.0 " , port = 8000 , debug = True )
You can’t perform that action at this time.
0 commit comments