saritha5 commited on
Commit
8af9793
·
1 Parent(s): 001ecc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -124,7 +124,8 @@ else:
124
  if f is None:
125
  st.write("Please upload an image file")
126
  else:
127
- st.write(f.name)
 
128
  image1= Image.open(f)
129
  st.image(image1,use_column_width = True)
130
  image_path = Path(f.name)
 
124
  if f is None:
125
  st.write("Please upload an image file")
126
  else:
127
+ f = StringIO(f.getvalue().decode("utf-8"))
128
+ st.write(f)
129
  image1= Image.open(f)
130
  st.image(image1,use_column_width = True)
131
  image_path = Path(f.name)