Piraloco commited on
Commit
3b7ecbc
·
1 Parent(s): 17d7021

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 > 100:
114
- prediction -= (prediction - 100)/2
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)) + '%'