com3dian commited on
Commit
bb24853
·
verified ·
1 Parent(s): 2e05f78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -77,8 +77,11 @@ with open('slides_text.pkl', 'rb') as file:
77
  summ_text = pickle.load(file)
78
 
79
  # Function to render HTML content
80
- def render_html(text):
81
- return f"<div>{text}</div>"
 
 
 
82
 
83
  # Initialize session state for page index
84
  if 'page_index' not in st.session_state:
 
77
  summ_text = pickle.load(file)
78
 
79
  # Function to render HTML content
80
+ sentences = text.split('.')
81
+ # Create HTML list items
82
+ list_items = "".join([f"<li>{sentence.strip()}.</li>" for sentence in sentences if sentence.strip()])
83
+ # Wrap list items in an unordered list
84
+ return f"<ul>{list_items}</ul>"
85
 
86
  # Initialize session state for page index
87
  if 'page_index' not in st.session_state: