Spaces:
Running
Running
James McCool
commited on
Commit
·
5b0cc81
1
Parent(s):
66deb94
Update game simulation settings in app.py to allow selection of the number of games (1-5) instead of match format (BO1, BO3, BO5). Adjusted game count extraction logic to reflect the new selection method, improving user experience and clarity in simulation configurations.
Browse files
app.py
CHANGED
|
@@ -90,13 +90,13 @@ with st.sidebar:
|
|
| 90 |
|
| 91 |
st.subheader("Prediction Settings")
|
| 92 |
num_games = st.selectbox(
|
| 93 |
-
"
|
| 94 |
-
options=["
|
| 95 |
index=0
|
| 96 |
)
|
| 97 |
|
| 98 |
# Convert BO format to number of games
|
| 99 |
-
game_count = int(num_games[
|
| 100 |
|
| 101 |
# Create lists to store settings for each game
|
| 102 |
win_loss_settings = []
|
|
|
|
| 90 |
|
| 91 |
st.subheader("Prediction Settings")
|
| 92 |
num_games = st.selectbox(
|
| 93 |
+
"How many games to simulate?",
|
| 94 |
+
options=["1", "2", "3", "4", "5"],
|
| 95 |
index=0
|
| 96 |
)
|
| 97 |
|
| 98 |
# Convert BO format to number of games
|
| 99 |
+
game_count = int(num_games[0])
|
| 100 |
|
| 101 |
# Create lists to store settings for each game
|
| 102 |
win_loss_settings = []
|