Spaces:
Sleeping
Sleeping
hafizh zaki prasetyo adi
commited on
Commit
•
7d2cd21
1
Parent(s):
268323c
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +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 |
extracted_tables = extract_table(image_path=img_name.name)
|
8 |
|
9 |
@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(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
|