Spaces:
Runtime error
Runtime error
cont draft
Browse files
app.py
CHANGED
@@ -284,10 +284,15 @@ elif genre == "Team Simulation":
|
|
284 |
return df_ret
|
285 |
|
286 |
def write_short_description(df_hero):
|
|
|
|
|
287 |
st.write(f'Power: {df_hero["power"].values[0]}')
|
288 |
st.write(f'Attack: {df_hero["attack"].values[0]}')
|
289 |
st.write(f'Defense: {df_hero["defense"].values[0]}')
|
290 |
st.write(f'Health: {df_hero["health"].values[0]}')
|
|
|
|
|
|
|
291 |
|
292 |
col1, col2, col3, col4, col5 = st.columns(5)
|
293 |
with col1:
|
@@ -308,7 +313,10 @@ elif genre == "Team Simulation":
|
|
308 |
|
309 |
df_hero_all5 = pd.concat([df_hero1, df_hero2, df_hero3, df_hero4, df_hero5])
|
310 |
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]
|
311 |
-
st.write(f'
|
|
|
|
|
|
|
312 |
display_heroes_from_df(df_hero_all5, display_cols=df_hero_all5.columns[:-2], show_df=False) # display all except special-skill text
|
313 |
|
314 |
#########################################
|
|
|
284 |
return df_ret
|
285 |
|
286 |
def write_short_description(df_hero):
|
287 |
+
url = df_hero['image'].values[0]
|
288 |
+
display_image(url)
|
289 |
st.write(f'Power: {df_hero["power"].values[0]}')
|
290 |
st.write(f'Attack: {df_hero["attack"].values[0]}')
|
291 |
st.write(f'Defense: {df_hero["defense"].values[0]}')
|
292 |
st.write(f'Health: {df_hero["health"].values[0]}')
|
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 |
col1, col2, col3, col4, col5 = st.columns(5)
|
298 |
with col1:
|
|
|
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]
|
316 |
+
st.write(f'======================')
|
317 |
+
st.write(f'### Total power = {total_power}')
|
318 |
+
st.write(f'======================')
|
319 |
+
|
320 |
display_heroes_from_df(df_hero_all5, display_cols=df_hero_all5.columns[:-2], show_df=False) # display all except special-skill text
|
321 |
|
322 |
#########################################
|