Skip to content

Commit 350310a

Browse files
authored
Update app.py
Updated
1 parent 5b1eec3 commit 350310a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
# Fetch processed data from EO repository
88
def 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")
1616
def api_processed_data():
1717
data = fetch_processed_data()
1818
return jsonify(data)
@@ -30,4 +30,4 @@ def home():
3030
processed_data=processed_data)
3131

3232
if __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)

0 commit comments

Comments
 (0)