Spaces:
Runtime error
Runtime error
add text area for synergy note
Browse files
app.py
CHANGED
|
@@ -294,7 +294,7 @@ elif genre == "Team Simulation":
|
|
| 294 |
st.write(f'Class: {df_hero["class"].values[0]}')
|
| 295 |
st.write(f'Types: {df_hero["types"].values[0]}')
|
| 296 |
|
| 297 |
-
col1, col2, col3, col4, col5 = st.columns(
|
| 298 |
with col1:
|
| 299 |
df_hero1 = choose_hero(key="Hero1") # 'key' in st.selectbox to differentiate widgets
|
| 300 |
write_short_description(df_hero1)
|
|
@@ -310,6 +310,8 @@ elif genre == "Team Simulation":
|
|
| 310 |
with col5:
|
| 311 |
df_hero5 = choose_hero(key="Hero5")
|
| 312 |
write_short_description(df_hero5)
|
|
|
|
|
|
|
| 313 |
|
| 314 |
df_hero_all5 = pd.concat([df_hero1, df_hero2, df_hero3, df_hero4, df_hero5])
|
| 315 |
total_power = df_hero1['power'].values[0]+ df_hero2['power'].values[0]+ df_hero3['power'].values[0]+ df_hero4['power'].values[0]+ df_hero5['power'].values[0]
|
|
|
|
| 294 |
st.write(f'Class: {df_hero["class"].values[0]}')
|
| 295 |
st.write(f'Types: {df_hero["types"].values[0]}')
|
| 296 |
|
| 297 |
+
col1, col2, col3, col4, col5, col6 = st.columns(6)
|
| 298 |
with col1:
|
| 299 |
df_hero1 = choose_hero(key="Hero1") # 'key' in st.selectbox to differentiate widgets
|
| 300 |
write_short_description(df_hero1)
|
|
|
|
| 310 |
with col5:
|
| 311 |
df_hero5 = choose_hero(key="Hero5")
|
| 312 |
write_short_description(df_hero5)
|
| 313 |
+
with col6:
|
| 314 |
+
txt = st.text_area("Write your note about team synergy", max_chars=1000)
|
| 315 |
|
| 316 |
df_hero_all5 = pd.concat([df_hero1, df_hero2, df_hero3, df_hero4, df_hero5])
|
| 317 |
total_power = df_hero1['power'].values[0]+ df_hero2['power'].values[0]+ df_hero3['power'].values[0]+ df_hero4['power'].values[0]+ df_hero5['power'].values[0]
|