Spaces:
Sleeping
Sleeping
GuysRGithub
commited on
Commit
•
cbbca27
1
Parent(s):
324a861
Update
Browse files
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
emoji: 🐠
|
4 |
colorFrom: purple
|
5 |
colorTo: green
|
|
|
1 |
---
|
2 |
+
title: MedChatRe
|
3 |
emoji: 🐠
|
4 |
colorFrom: purple
|
5 |
colorTo: green
|
app.py
CHANGED
@@ -8,15 +8,15 @@ from transformers import AutoTokenizer
|
|
8 |
from langdetect import detect
|
9 |
import subprocess
|
10 |
|
11 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
12 |
|
13 |
-
vn_tokenizer = AutoTokenizer.from_pretrained("GuysTrans/bart-base-vn-
|
14 |
|
15 |
model = AutoModelForSeq2SeqLM.from_pretrained(
|
16 |
-
"GuysTrans/bart-base-
|
17 |
|
18 |
vn_model = AutoModelForSeq2SeqLM.from_pretrained(
|
19 |
-
"GuysTrans/bart-base-vn-
|
20 |
|
21 |
map_words = {
|
22 |
"Hello and Welcome to 'Ask A Doctor' service": "",
|
|
|
8 |
from langdetect import detect
|
9 |
import subprocess
|
10 |
|
11 |
+
tokenizer = AutoTokenizer.from_pretrained("GuysTrans/bart-base-re-attention-seq-512")
|
12 |
|
13 |
+
vn_tokenizer = AutoTokenizer.from_pretrained("GuysTrans/bart-base-vn-re-attention-vn-tokenizer")
|
14 |
|
15 |
model = AutoModelForSeq2SeqLM.from_pretrained(
|
16 |
+
"GuysTrans/bart-base-re-attention-seq-512")
|
17 |
|
18 |
vn_model = AutoModelForSeq2SeqLM.from_pretrained(
|
19 |
+
"GuysTrans/bart-base-vn-re-attention-vn-tokenizer")
|
20 |
|
21 |
map_words = {
|
22 |
"Hello and Welcome to 'Ask A Doctor' service": "",
|