GuysRGithub
commited on
Commit
·
fb2ccc3
1
Parent(s):
f50c7df
Update
Browse files
app.py
CHANGED
@@ -23,6 +23,7 @@ map_words = {
|
|
23 |
"Hello": "",
|
24 |
"Hi": "",
|
25 |
"welcome to": "",
|
|
|
26 |
}
|
27 |
|
28 |
word_remove_sentence = [
|
@@ -31,6 +32,8 @@ word_remove_sentence = [
|
|
31 |
"regards",
|
32 |
"dr.",
|
33 |
"physician",
|
|
|
|
|
34 |
]
|
35 |
|
36 |
|
@@ -153,7 +156,7 @@ def post_process(output):
|
|
153 |
for item in map_words.keys():
|
154 |
output = re.sub(item, map_words[item], output, re.I)
|
155 |
|
156 |
-
return f"Welcome to MedForRum service {textwrap.fill(textwrap.dedent(output).strip(), width=120)}"
|
157 |
|
158 |
|
159 |
|
|
|
23 |
"Hello": "",
|
24 |
"Hi": "",
|
25 |
"welcome to": "",
|
26 |
+
"thanks": "",
|
27 |
}
|
28 |
|
29 |
word_remove_sentence = [
|
|
|
32 |
"regards",
|
33 |
"dr.",
|
34 |
"physician",
|
35 |
+
"thanks",
|
36 |
+
"welcome",
|
37 |
]
|
38 |
|
39 |
|
|
|
156 |
for item in map_words.keys():
|
157 |
output = re.sub(item, map_words[item], output, re.I)
|
158 |
|
159 |
+
return f"Welcome to MedForRum service. {textwrap.fill(textwrap.dedent(output).strip(), width=120)}. Thanks for asking on MedForum."
|
160 |
|
161 |
|
162 |
|