Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,8 @@ from collections import defaultdict
|
|
| 10 |
#########################################
|
| 11 |
# Helpers Functions
|
| 12 |
|
|
|
|
|
|
|
| 13 |
def filter_by_1col(df, col_name, query, exact_flag=False):
|
| 14 |
|
| 15 |
def check_valid_value(query, string, exact_flag=False):
|
|
@@ -48,8 +50,6 @@ def display_image(url, scale=0.5):
|
|
| 48 |
st.image(image.resize(( int(image.width * scale), int(image.height * scale))))
|
| 49 |
|
| 50 |
def display_heroes_from_df(df):
|
| 51 |
-
display_cols = ['image','name', 'color', 'star', 'class', 'speed', 'power', 'attack', 'defense', 'health', 'types', 'source', 'family']
|
| 52 |
-
|
| 53 |
st.dataframe(df[display_cols],
|
| 54 |
column_config={
|
| 55 |
"image": st.column_config.ImageColumn("Avatar", help="")},
|
|
|
|
| 10 |
#########################################
|
| 11 |
# Helpers Functions
|
| 12 |
|
| 13 |
+
display_cols = ['image','name', 'color', 'star', 'class', 'speed', 'power', 'attack', 'defense', 'health', 'types', 'source', 'family']
|
| 14 |
+
|
| 15 |
def filter_by_1col(df, col_name, query, exact_flag=False):
|
| 16 |
|
| 17 |
def check_valid_value(query, string, exact_flag=False):
|
|
|
|
| 50 |
st.image(image.resize(( int(image.width * scale), int(image.height * scale))))
|
| 51 |
|
| 52 |
def display_heroes_from_df(df):
|
|
|
|
|
|
|
| 53 |
st.dataframe(df[display_cols],
|
| 54 |
column_config={
|
| 55 |
"image": st.column_config.ImageColumn("Avatar", help="")},
|