Jay-Rajput commited on
Commit
030a527
·
1 Parent(s): 9df7d3a
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -155,9 +155,16 @@ def submit_prediction(
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} 😱")
 
 
 
 
 
 
 
161
  return
162
 
163
  prediction_id = uuid.uuid4().hex
 
155
  return
156
 
157
  bid_points = int(bid_points)
158
+ if bid_points < min_bid_points:
159
+ st.error(
160
+ f"Oops, your bid is too low! 🚫 Minimum allowed bid is {min_bid_points} (10% of your points)."
161
+ )
162
+ return
163
+
164
+ if bid_points > max_bid_points:
165
+ st.error(
166
+ f"Oops, your bid is too high! 🚫 Maximum allowed bid is {max_bid_points} (50% of your points)."
167
+ )
168
  return
169
 
170
  prediction_id = uuid.uuid4().hex