Jung commited on
Commit
08661b1
·
verified ·
1 Parent(s): f8164d0

minor text fixed

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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):