Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 🔨")
|