selamw commited on
Commit
fe57642
·
verified ·
1 Parent(s): e73c139

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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(f': **', f':**')
 
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}"