Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def predict_accident(
|
|
34 |
wickets_last_5_overs
|
35 |
):
|
36 |
# Replace the URL with the actual endpoint you want to send the request to
|
37 |
-
url = "https://
|
38 |
|
39 |
# Replace the payload with the data you want to send in the request body
|
40 |
payload = {"batting_team": batting_team, "bowling_team": bowling_team, "total_runs": total_runs, "total_wickets": total_wickets, "overs": overs, "runs_last_5_overs": runs_last_5_overs, "wickets_last_5_overs": wickets_last_5_overs}
|
|
|
34 |
wickets_last_5_overs
|
35 |
):
|
36 |
# Replace the URL with the actual endpoint you want to send the request to
|
37 |
+
url = "https://abhicodes-icc-prediction-model-api.hf.space/prediction"
|
38 |
|
39 |
# Replace the payload with the data you want to send in the request body
|
40 |
payload = {"batting_team": batting_team, "bowling_team": bowling_team, "total_runs": total_runs, "total_wickets": total_wickets, "overs": overs, "runs_last_5_overs": runs_last_5_overs, "wickets_last_5_overs": wickets_last_5_overs}
|