ahm14 commited on
Commit
bec901b
·
verified ·
1 Parent(s): c477bc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -223,6 +223,13 @@ if uploaded_excel:
223
  excel_metadata = extract_metadata_from_excel(uploaded_excel)
224
  output_data = merge_metadata_with_generated_data(output_data, excel_metadata)
225
 
 
 
 
 
 
 
 
226
  if output_data:
227
  docx_output = create_docx_from_data(output_data)
228
  docx_io = io.BytesIO()
 
223
  excel_metadata = extract_metadata_from_excel(uploaded_excel)
224
  output_data = merge_metadata_with_generated_data(output_data, excel_metadata)
225
 
226
+ # Display results in collapsible sections for better UI
227
+ if output_data:
228
+ for post_number, data in output_data.items():
229
+ with st.expander(post_number):
230
+ for key, value in data.items():
231
+ st.write(f"**{key}:** {value}")
232
+
233
  if output_data:
234
  docx_output = create_docx_from_data(output_data)
235
  docx_io = io.BytesIO()