samanjoy2 commited on
Commit
4b69cb8
1 Parent(s): a36a8d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ pipe = pipeline("text2text-generation", model="samanjoy2/bnpunct_banglat5_seq2se
9
 
10
  def highlight_punctuation(text, punctuation_marks):
11
  punctuation_pattern = '|'.join(map(re.escape, punctuation_marks))
12
- highlighted_text = re.sub(f'({punctuation_pattern})', r'<span style="color: green;">\1</span>', text)
13
  return highlighted_text
14
 
15
  st.title("Bangla Punctutation Restoration 🔨")
 
9
 
10
  def highlight_punctuation(text, punctuation_marks):
11
  punctuation_pattern = '|'.join(map(re.escape, punctuation_marks))
12
+ highlighted_text = re.sub(f'({punctuation_pattern})', r'<span style="color: green; font-weight: bold;">\1</span>', text)
13
  return highlighted_text
14
 
15
  st.title("Bangla Punctutation Restoration 🔨")