GuysRGithub
commited on
Commit
·
d090873
1
Parent(s):
c96eef2
Update
Browse files
app.py
CHANGED
|
@@ -21,7 +21,8 @@ map_words = {
|
|
| 21 |
"Hello,": "",
|
| 22 |
"Hi,": "",
|
| 23 |
"Hello": "",
|
| 24 |
-
"Hi": ""
|
|
|
|
| 25 |
}
|
| 26 |
|
| 27 |
word_remove_sentence = [
|
|
@@ -152,7 +153,7 @@ def post_process(output):
|
|
| 152 |
for item in map_words.keys():
|
| 153 |
output = re.sub(item, map_words[item], output, re.I)
|
| 154 |
|
| 155 |
-
return textwrap.fill(textwrap.dedent(output).strip(), width=120)
|
| 156 |
|
| 157 |
|
| 158 |
|
|
|
|
| 21 |
"Hello,": "",
|
| 22 |
"Hi,": "",
|
| 23 |
"Hello": "",
|
| 24 |
+
"Hi": "",
|
| 25 |
+
"welcome to": "",
|
| 26 |
}
|
| 27 |
|
| 28 |
word_remove_sentence = [
|
|
|
|
| 153 |
for item in map_words.keys():
|
| 154 |
output = re.sub(item, map_words[item], output, re.I)
|
| 155 |
|
| 156 |
+
return "Welcome to \"MedForRum\" service" + textwrap.fill(textwrap.dedent(output).strip(), width=120)
|
| 157 |
|
| 158 |
|
| 159 |
|