Spaces:
Sleeping
Sleeping
Jiang Xiaolan
commited on
Commit
·
9cc8bea
1
Parent(s):
83d3fd4
remove excel
Browse files
app.py
CHANGED
@@ -145,21 +145,21 @@ if clone_repo():
|
|
145 |
st.session_state.json_predictions = json_predictions
|
146 |
|
147 |
# Convert JSON to Excel
|
148 |
-
excel_file_path = "output.xlsx"
|
149 |
-
st.session_state.excel_file_path = excel_file_path
|
150 |
-
ia.json_to_excel_with_links(json_predictions, excel_file_path)
|
151 |
|
152 |
# After model finishes
|
153 |
status_placeholder.success('ファイルの解析が完了しました!')
|
154 |
|
155 |
# 提供下载链接
|
156 |
-
with open(excel_file_path, "rb") as file:
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
|
164 |
# Display the result
|
165 |
st.write("解析後の内容:")
|
|
|
145 |
st.session_state.json_predictions = json_predictions
|
146 |
|
147 |
# Convert JSON to Excel
|
148 |
+
# excel_file_path = "output.xlsx"
|
149 |
+
# st.session_state.excel_file_path = excel_file_path
|
150 |
+
# ia.json_to_excel_with_links(json_predictions, excel_file_path)
|
151 |
|
152 |
# After model finishes
|
153 |
status_placeholder.success('ファイルの解析が完了しました!')
|
154 |
|
155 |
# 提供下载链接
|
156 |
+
# with open(excel_file_path, "rb") as file:
|
157 |
+
# st.download_button(
|
158 |
+
# label="Download Excel",
|
159 |
+
# data=file,
|
160 |
+
# file_name="output.xlsx",
|
161 |
+
# mime="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
162 |
+
# )
|
163 |
|
164 |
# Display the result
|
165 |
st.write("解析後の内容:")
|