Spaces:
Runtime error
Runtime error
bug fix
Browse files
app.py
CHANGED
|
@@ -272,8 +272,6 @@ if genre == ':rainbow[Heroes Explorer]':
|
|
| 272 |
#########################################
|
| 273 |
## Program 2 "Team Simulation"
|
| 274 |
elif genre == "Team Simulation":
|
| 275 |
-
|
| 276 |
-
nheroes_choice = st.selectbox(label='Number of Heroes:', options=[2,3,4,5], index=-1)
|
| 277 |
|
| 278 |
def choose_hero(key="Hero1"):
|
| 279 |
name_choice = st.selectbox(label='Hero Name:', options=all_name_extra, index=0, key=key+"_name")
|
|
@@ -295,7 +293,9 @@ elif genre == "Team Simulation":
|
|
| 295 |
st.write(f'Speed: {df_hero["speed"].values[0]}')
|
| 296 |
st.write(f'Class: {df_hero["class"].values[0]}')
|
| 297 |
st.write(f'Types: {df_hero["types"].values[0]}')
|
| 298 |
-
|
|
|
|
|
|
|
| 299 |
|
| 300 |
col_list = st.columns(nheroes_choice+1)
|
| 301 |
df_hero_list = []
|
|
|
|
| 272 |
#########################################
|
| 273 |
## Program 2 "Team Simulation"
|
| 274 |
elif genre == "Team Simulation":
|
|
|
|
|
|
|
| 275 |
|
| 276 |
def choose_hero(key="Hero1"):
|
| 277 |
name_choice = st.selectbox(label='Hero Name:', options=all_name_extra, index=0, key=key+"_name")
|
|
|
|
| 293 |
st.write(f'Speed: {df_hero["speed"].values[0]}')
|
| 294 |
st.write(f'Class: {df_hero["class"].values[0]}')
|
| 295 |
st.write(f'Types: {df_hero["types"].values[0]}')
|
| 296 |
+
|
| 297 |
+
nheroes_choice_list = [2,3,4,5]
|
| 298 |
+
nheroes_choice = st.selectbox(label='Number of Heroes:', options=nheroes_choice_list, index=len(nheroes_choice_list)-1)
|
| 299 |
|
| 300 |
col_list = st.columns(nheroes_choice+1)
|
| 301 |
df_hero_list = []
|