Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
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
|