Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,8 +29,9 @@ def convert_to_markdown(input_text):
|
|
| 29 |
title, content = map(str.strip, input_text.split(":", 1))
|
| 30 |
# Bold the keywords
|
| 31 |
for word in bold_words:
|
| 32 |
-
content = content.replace(word, f'\n\n**{word}\n')
|
| 33 |
-
content = content.replace(
|
|
|
|
| 34 |
|
| 35 |
# Construct the Markdown output with headings
|
| 36 |
formatted_output = f"**{title}**{content}"
|
|
|
|
| 29 |
title, content = map(str.strip, input_text.split(":", 1))
|
| 30 |
# Bold the keywords
|
| 31 |
for word in bold_words:
|
| 32 |
+
# content = content.replace(word, f'\n\n**{word}\n')
|
| 33 |
+
content = content.replace(word, f'\n\n**{word}')
|
| 34 |
+
# content = content.replace(f': **', f':**')
|
| 35 |
|
| 36 |
# Construct the Markdown output with headings
|
| 37 |
formatted_output = f"**{title}**{content}"
|