GuysRGithub commited on
Commit
cbbca27
1 Parent(s): 324a861
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +4 -4
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: MedChat
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("facebook/bart-base")
12
 
13
- vn_tokenizer = AutoTokenizer.from_pretrained("GuysTrans/bart-base-vn-ehealth-vn-tokenizer")
14
 
15
  model = AutoModelForSeq2SeqLM.from_pretrained(
16
- "GuysTrans/bart-base-finetuned-xsum", revision="worked")
17
 
18
  vn_model = AutoModelForSeq2SeqLM.from_pretrained(
19
- "GuysTrans/bart-base-vn-ehealth-vn-tokenizer", revision="worked")
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": "",