Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -256,14 +256,20 @@ It also predicts the probability that each team will score in 1s, 2s, etc. up to
|
|
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 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
|
268 |
|
269 |
def gradio_app():
|
@@ -276,7 +282,8 @@ def gradio_app():
|
|
276 |
# Use gr.Column to stack components vertically
|
277 |
with gr.Column():
|
278 |
file_input = gr.File(label="Upload Replay File", type="filepath", file_types=[".replay"])
|
279 |
-
checkboxes = gr.Radio(label="Options", choices=RADIO_OPTIONS, type="index", value=0
|
|
|
280 |
submit_button = gr.Button("Generate Predictions")
|
281 |
plot_output = gr.Plot(label="Predictions")
|
282 |
download_button = gr.DownloadButton("Download Predictions", visible=False)
|
|
|
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.
|
270 |
+
- **Nullify goal difference**: Makes the model think the goal difference is always 0, so it doesn't have a bias towards one team.
|
271 |
+
- **Ignore ties**: Makes the model pretend every situation is an overtime (e.g. ties are impossible).
|
272 |
+
""".strip()
|
273 |
|
274 |
|
275 |
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")
|
289 |
download_button = gr.DownloadButton("Download Predictions", visible=False)
|