Spaces:
Sleeping
Sleeping
hafizh zaki prasetyo adi
commited on
Commit
•
37e4b8d
1
Parent(s):
7d2cd21
Update app.py upload_file
Browse files
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(
|
8 |
-
f.write(
|
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
|