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