Rolv-Arild commited on
Commit
8bd985f
·
verified ·
1 Parent(s): 2f6f974

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -14
app.py CHANGED
@@ -249,21 +249,12 @@ DESCRIPTION = """
249
  # Next Goal Predictor
250
  Upload a replay file to get a plot of the next goal prediction.
251
 
252
- The model is trained on about 50,000 hours of SSL and RLCS replays in 1s, 2s, and 3s.
253
-
254
- It predicts the probability of each team scoring the next goal, in addition to ties.<br>
255
- It also predicts the probability that each team will score in 1s, 2s, etc. up to 60+ seconds.<br>
256
- The plot only shows the team predictions, but you can download the full predictions if you want.
257
  """.strip()
258
 
259
- # RADIO_OPTIONS = [
260
- # ("**Default**<br>Uses the model as it is trained, with no modifications.", "default"),
261
- # (
262
- # "**Nullify goal difference**<br>Makes the model think the goal difference is always 0, so it doesn't have a bias towards one team.",
263
- # "nullify_goal_difference"),
264
- # ("**Ignore ties**<br>Makes the model pretend every situation is an overtime (e.g. ties are impossible).",
265
- # "ignore_ties"),
266
- # ]
267
  RADIO_OPTIONS = ["Default", "Nullify goal difference", "Ignore ties"]
268
  RADIO_INFO = """
269
  - **Default**: Uses the model as it is trained, with no modifications.
@@ -282,7 +273,7 @@ def gradio_app():
282
  # Use gr.Column to stack components vertically
283
  with gr.Column():
284
  file_input = gr.File(label="Upload Replay File", type="filepath", file_types=[".replay"])
285
- checkboxes = gr.Radio(label="Options", choices=RADIO_OPTIONS, type="index", value=0,
286
  info=RADIO_INFO)
287
  submit_button = gr.Button("Generate Predictions")
288
  plot_output = gr.Plot(label="Predictions")
 
249
  # Next Goal Predictor
250
  Upload a replay file to get a plot of the next goal prediction.
251
 
252
+ The model is trained on about 14 000 hours of SSL and RLCS replays in 1v1, 2v2, and 3v3 using [this dataset](https://www.kaggle.com/datasets/rolvarild/high-level-rocket-league-replay-dataset).<br>
253
+ It predicts the probability that each team will score at 1 second intervals up to 60+ seconds.
254
+ It also predicts ties (ball hitting the ground at 0s)<br>
255
+ The plot only shows the totals for each team, but you can download the full predictions if you want.
 
256
  """.strip()
257
 
 
 
 
 
 
 
 
 
258
  RADIO_OPTIONS = ["Default", "Nullify goal difference", "Ignore ties"]
259
  RADIO_INFO = """
260
  - **Default**: Uses the model as it is trained, with no modifications.
 
273
  # Use gr.Column to stack components vertically
274
  with gr.Column():
275
  file_input = gr.File(label="Upload Replay File", type="filepath", file_types=[".replay"])
276
+ checkboxes = gr.Radio(label="Options", choices=RADIO_OPTIONS, type="index", value=RADIO_OPTIONS[0],
277
  info=RADIO_INFO)
278
  submit_button = gr.Button("Generate Predictions")
279
  plot_output = gr.Plot(label="Predictions")