Spaces:
Sleeping
Sleeping
Jiang Xiaolan
commited on
Commit
·
83d3fd4
1
Parent(s):
b1286d3
remove download button
Browse files
app.py
CHANGED
@@ -112,21 +112,21 @@ if clone_repo():
|
|
112 |
st.write("## アップロードされたファイル")
|
113 |
st.image(pil_image, caption="アップロードされたファイル", use_column_width=True)
|
114 |
|
115 |
-
if 'json_predictions' in st.session_state:
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
|
131 |
if text_rec:
|
132 |
with col2:
|
|
|
112 |
st.write("## アップロードされたファイル")
|
113 |
st.image(pil_image, caption="アップロードされたファイル", use_column_width=True)
|
114 |
|
115 |
+
# if 'json_predictions' in st.session_state:
|
116 |
+
# prev_json_predictions = st.session_state.json_predictions
|
117 |
+
# prev_excel_file_path = st.session_state.excel_file_path
|
118 |
+
# with col2:
|
119 |
+
# st.write("## 結果")
|
120 |
+
# # 提供下载链接
|
121 |
+
# with open(prev_excel_file_path, "rb") as file:
|
122 |
+
# st.download_button(
|
123 |
+
# label="Download Excel",
|
124 |
+
# data=file,
|
125 |
+
# file_name="output.xlsx",
|
126 |
+
# mime="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
127 |
+
# )
|
128 |
+
# st.write("解析後の内容:")
|
129 |
+
# st.json(prev_json_predictions)
|
130 |
|
131 |
if text_rec:
|
132 |
with col2:
|