Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
crvernon committed Sep 11, 2024
1 parent a3abd89 commit 941f341
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,57 +849,3 @@
label_visibility="collapsed",
height=250
)


# ppt_figure_output = st.container()
# ppt_figure_output.markdown("##### Export PPT slide with new content when ready")

# highlight_ppt_template = importlib.resources.files('highlight.data').joinpath('highlight_template.pptx')
# ppt = Presentation(highlight_ppt_template)

# # get target slide
# slide = ppt.slides[0]

# # queue named items for retrieval; ignore picture for now
# item_queue = {i.text_frame.text: i.text_frame for i in slide.shapes if i.shape_type != 13}

# # title
# if st.session_state.title_response is not None:
# text_frame = item_queue["title"]
# text_frame.clear()
# p = text_frame.add_paragraph()
# p.text = st.session_state.title_response
# p.font.name = "Arial"
# p.font.size = Pt(30)

# # objective
# if st.session_state.objective_response is not None:
# text_frame = item_queue["objective_0"]
# text_frame.clear()
# p = text_frame.add_paragraph()
# p.text = st.session_state.objective_response
# p.font.name = "Calibri"
# p.font.size = Pt(13)
# p.level = 0

# # citation
# if st.session_state.citation is not None:
# text_frame = item_queue["citation"]
# text_frame.clear()
# text_frame.text = st.session_state.citation
# text_frame.font.name = "Calibri"
# text_frame.font.size = Pt(10)

# # save this to an in-memory bytes buffer
# ppt_io = io.BytesIO()
# ppt.save(ppt_io)
# ppt_io.seek(0)

# if ppt:
# ppt_figure_output.download_button(
# label="Download Modified PowerPoint",
# data=ppt_io,
# file_name="modified_template.pptx",
# mime="application/vnd.openxmlformats-officedocument.presentationml.presentation"
# )

0 comments on commit 941f341

Please sign in to comment.