Jay-Rajput commited on
Commit
9df7d3a
·
1 Parent(s): 85ba4d2
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -154,6 +154,7 @@ def submit_prediction(
154
  st.error("Prediction submission time has passed. Predictions can't be submitted after match start.")
155
  return
156
 
 
157
  if bid_points > max_bid_points or bid_points < min_bid_points:
158
  st.error(f"Oops, invalid bid! You must bid at least 10% and not more than 50% of your points. Maximum allowed: {max_bid_points}")
159
  # st.error(f"Oops! 🙈 Looks like you're going overboard with your bid points! Your bid points cannot exceed your total points. Maximum allowed bid points: {max_bid_points} 😱")
 
154
  st.error("Prediction submission time has passed. Predictions can't be submitted after match start.")
155
  return
156
 
157
+ bid_points = int(bid_points)
158
  if bid_points > max_bid_points or bid_points < min_bid_points:
159
  st.error(f"Oops, invalid bid! You must bid at least 10% and not more than 50% of your points. Maximum allowed: {max_bid_points}")
160
  # st.error(f"Oops! 🙈 Looks like you're going overboard with your bid points! Your bid points cannot exceed your total points. Maximum allowed bid points: {max_bid_points} 😱")