saritha5 commited on
Commit
a1d60ae
1 Parent(s): 4a2e709

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ file = st.file_uploader('Upload an Image',type=(["jpeg","jpg","png"]))
50
  if file is None:
51
  st.write("Please upload an image file")
52
  else:
53
- image= Image.open(f)
54
  st.image(image,use_column_width = True)
55
  with NamedTemporaryFile(dir='.', suffix='.csv') as f:
56
  f.write(file.getbuffer())
 
50
  if file is None:
51
  st.write("Please upload an image file")
52
  else:
53
+ image= Image.open(file)
54
  st.image(image,use_column_width = True)
55
  with NamedTemporaryFile(dir='.', suffix='.csv') as f:
56
  f.write(file.getbuffer())