debu das commited on
Commit
667e7d5
1 Parent(s): d4a7cc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,6 +44,6 @@ if submit:
44
  bytes_data = uploaded_file.getvalue()
45
  if bytes_data is not None:
46
  bytes_data = uploaded_file.read()
47
- image = Image.open(io.BytesIO(bytes_data))
48
  st.image(image, caption='Sunrise by the mountains')
49
  ocr(image,'ch')
 
44
  bytes_data = uploaded_file.getvalue()
45
  if bytes_data is not None:
46
  bytes_data = uploaded_file.read()
47
+ image = Image.open(bytes_data)
48
  st.image(image, caption='Sunrise by the mountains')
49
  ocr(image,'ch')