Spaces:
Runtime error
Runtime error
minor text fixed
Browse files
app.py
CHANGED
|
@@ -71,10 +71,9 @@ def display_image(url, scale=0.5, enable_flag = False):
|
|
| 71 |
# image = Image.open(urlopen(url))
|
| 72 |
# st.image(image.resize(( int(image.width * scale), int(image.height * scale))))
|
| 73 |
|
| 74 |
-
|
| 75 |
-
The problem occur because imgur remove file extension e.g. 'jpg',
|
| 76 |
-
so either url is wrong with urlopen or Image.open does not know image type if use requests/urllib3
|
| 77 |
-
"""
|
| 78 |
st.image(url)
|
| 79 |
|
| 80 |
def display_heroes_from_df(df,display_cols=display_cols, show_df=True):
|
|
|
|
| 71 |
# image = Image.open(urlopen(url))
|
| 72 |
# st.image(image.resize(( int(image.width * scale), int(image.height * scale))))
|
| 73 |
|
| 74 |
+
|
| 75 |
+
# The problem occur because imgur remove file extension e.g. 'jpg',
|
| 76 |
+
# so either url is wrong with urlopen or Image.open does not know image type if use requests/urllib3
|
|
|
|
| 77 |
st.image(url)
|
| 78 |
|
| 79 |
def display_heroes_from_df(df,display_cols=display_cols, show_df=True):
|