Update load_llms.py
Browse files- load_llms.py +3 -3
load_llms.py
CHANGED
@@ -36,14 +36,14 @@ def replace_starttags(html_string, replacements):
|
|
36 |
|
37 |
def format_html_string(html_string):
|
38 |
"""Format the HTML string to a readable text format."""
|
39 |
-
tags_to_remove = ["ul", "li", "br"]
|
40 |
html_string = remove_endtags(html_string, tags_to_remove)
|
41 |
|
42 |
tag_replacements = {
|
|
|
43 |
"<li>": "\n➤ ",
|
44 |
"<br>": "\n",
|
45 |
-
"<strong>": "
|
46 |
-
"</strong>": "**"
|
47 |
}
|
48 |
formatted_string = replace_starttags(html_string, tag_replacements)
|
49 |
|
|
|
36 |
|
37 |
def format_html_string(html_string):
|
38 |
"""Format the HTML string to a readable text format."""
|
39 |
+
tags_to_remove = ["ul", "li", "br", "strong"]
|
40 |
html_string = remove_endtags(html_string, tags_to_remove)
|
41 |
|
42 |
tag_replacements = {
|
43 |
+
"<ul>": "",
|
44 |
"<li>": "\n➤ ",
|
45 |
"<br>": "\n",
|
46 |
+
"<strong>": "",
|
|
|
47 |
}
|
48 |
formatted_string = replace_starttags(html_string, tag_replacements)
|
49 |
|