Spaces:
Sleeping
Sleeping
Krishs21 commited on
Commit ·
dead5e2
1
Parent(s): 2347e90
updated app.py
Browse files
app.py
CHANGED
|
@@ -19,11 +19,9 @@ def predict_auction_price(matches, ipl_runs, strike_rate, average, budget, team_
|
|
| 19 |
team_wk, team_away_player, age, is_away, player_type,
|
| 20 |
wickets, economy, is_fast_bowler, bowl_strike_rate]])
|
| 21 |
|
| 22 |
-
# Convert to DMatrix for XGBoost
|
| 23 |
-
dmatrix = xgb.DMatrix(input_features)
|
| 24 |
|
| 25 |
# Predict the auction price
|
| 26 |
-
prediction = model.predict(
|
| 27 |
|
| 28 |
return prediction[0] # Return the predicted auction price
|
| 29 |
|
|
|
|
| 19 |
team_wk, team_away_player, age, is_away, player_type,
|
| 20 |
wickets, economy, is_fast_bowler, bowl_strike_rate]])
|
| 21 |
|
|
|
|
|
|
|
| 22 |
|
| 23 |
# Predict the auction price
|
| 24 |
+
prediction = model.predict(input_features)
|
| 25 |
|
| 26 |
return prediction[0] # Return the predicted auction price
|
| 27 |
|