hafizh zaki prasetyo adi commited on
Commit
37e4b8d
1 Parent(s): 7d2cd21

Update app.py upload_file

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,8 +4,8 @@ from tablecv import extract_table
4
  img_name = st.file_uploader("Upload an image with table(s)")
5
  if img_name is not None:
6
  st.image(img_name)
7
- with open(uploaded_file.name, "wb") as f:
8
- f.write(uploaded_file.getbuffer())
9
  extracted_tables = extract_table(image_path=img_name.name)
10
 
11
  @st.experimental_memo
 
4
  img_name = st.file_uploader("Upload an image with table(s)")
5
  if img_name is not None:
6
  st.image(img_name)
7
+ with open(img_name.name, "wb") as f:
8
+ f.write(img_name.getbuffer())
9
  extracted_tables = extract_table(image_path=img_name.name)
10
 
11
  @st.experimental_memo