Update app.py
Browse files
app.py
CHANGED
|
@@ -110,8 +110,8 @@ def make_prediction(rank,map,agent_picks):
|
|
| 110 |
# Post-process the output (replace this with your specific post-processing steps)
|
| 111 |
#prediction = model(data)
|
| 112 |
prediction = prediction.item()
|
| 113 |
-
if prediction >
|
| 114 |
-
prediction -= (prediction -
|
| 115 |
prediction = 0 if prediction < 0 else prediction
|
| 116 |
|
| 117 |
winrate = str(round(prediction * 100)) + '%'
|
|
|
|
| 110 |
# Post-process the output (replace this with your specific post-processing steps)
|
| 111 |
#prediction = model(data)
|
| 112 |
prediction = prediction.item()
|
| 113 |
+
if prediction > 1:
|
| 114 |
+
prediction -= (prediction - 1)/2
|
| 115 |
prediction = 0 if prediction < 0 else prediction
|
| 116 |
|
| 117 |
winrate = str(round(prediction * 100)) + '%'
|