nguyen-brat commited on
Commit
0ba87af
1 Parent(s): 6d036be
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -68,8 +68,7 @@ if uploaded_file is not None:
68
  # os.makedirs(osp(output_path, "mask"), exist_ok=True)
69
 
70
  input_file_path = os.path.join(input_path, uploaded_file.name)
71
- image_data = uploaded_file.getvalue()
72
- image = Image.open(image_data)
73
  image.save(input_file_path)
74
 
75
  if st.button("Run Text Detection"):
 
68
  # os.makedirs(osp(output_path, "mask"), exist_ok=True)
69
 
70
  input_file_path = os.path.join(input_path, uploaded_file.name)
71
+ image = Image.open(uploaded_file)
 
72
  image.save(input_file_path)
73
 
74
  if st.button("Run Text Detection"):