com3dian commited on
Commit
6d4fa22
·
verified ·
1 Parent(s): bb24853

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -77,7 +77,9 @@ with open('slides_text.pkl', 'rb') as file:
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
 
77
  summ_text = pickle.load(file)
78
 
79
  # Function to render HTML content
80
+ def render_html(text):
81
+ # Split text by periods
82
+ sentences = text.split('.')
83
  # Create HTML list items
84
  list_items = "".join([f"<li>{sentence.strip()}.</li>" for sentence in sentences if sentence.strip()])
85
  # Wrap list items in an unordered list