Spaces:
Sleeping
Sleeping
Commit
·
030a527
1
Parent(s):
9df7d3a
enhance
Browse files
app.py
CHANGED
|
@@ -155,9 +155,16 @@ def submit_prediction(
|
|
| 155 |
return
|
| 156 |
|
| 157 |
bid_points = int(bid_points)
|
| 158 |
-
if bid_points
|
| 159 |
-
st.error(
|
| 160 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|