Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -135,13 +135,13 @@ def visualize (run_text,output):
|
|
135 |
|
136 |
text = ''
|
137 |
|
138 |
-
display(HTML(f'<h1>Summary - {title}</h1>'))
|
139 |
for sentence in sentence_list:
|
140 |
if sentence in best_sentences:
|
141 |
text += ' ' + str(sentence).replace(sentence, f"<mark>{sentence}</mark>")
|
142 |
else:
|
143 |
text += ' ' + sentence
|
144 |
-
|
145 |
best_sentences = []
|
146 |
for sentence in summary:
|
147 |
best_sentences.append(str(sentence))
|
|
|
135 |
|
136 |
text = ''
|
137 |
|
138 |
+
#display(HTML(f'<h1>Summary - {title}</h1>'))
|
139 |
for sentence in sentence_list:
|
140 |
if sentence in best_sentences:
|
141 |
text += ' ' + str(sentence).replace(sentence, f"<mark>{sentence}</mark>")
|
142 |
else:
|
143 |
text += ' ' + sentence
|
144 |
+
# display(HTML(f""" {text} """))
|
145 |
best_sentences = []
|
146 |
for sentence in summary:
|
147 |
best_sentences.append(str(sentence))
|