added root route

This commit is contained in:
samarthjain2023
2025-09-27 18:44:09 -04:00
parent 629444c382
commit 85e30a70a7
5 changed files with 428 additions and 0 deletions

View File

@@ -66,6 +66,9 @@ def predict_endpoint():
except Exception:
pass
@app.route('/')
def home():
return "<h1>Welcome to the Flask App</h1><p>Try /get-data or /health endpoints.</p>"
@app.route('/predict-roadrisk', methods=['POST'])
def predict_roadrisk():