khuangaf
commited on
Commit
·
edc7e25
1
Parent(s):
b6562c0
update README
Browse files
README.md
CHANGED
@@ -16,7 +16,7 @@ from transformers import pipeline
|
|
16 |
nlp = pipeline("text2text-generation", model='khhuang/zerofec-daqa-t5-base', tokenizer='khhuang/zerofec-daqa-t5-base')
|
17 |
|
18 |
QUESTION = "What is Night of the Living Dead?"
|
19 |
-
CONTEXT = "Night of the Living Dead is a 1968 American independent horror film , directed by George A.
|
20 |
|
21 |
def format_inputs(context: str, question: str):
|
22 |
return f"{question} \n {context}"
|
@@ -35,7 +35,7 @@ tokenizer = AutoTokenizer.from_pretrained('khhuang/zerofec-daqa-t5-base')
|
|
35 |
model = AutoModelForSeq2SeqLM.from_pretrained('khhuang/zerofec-daqa-t5-base')
|
36 |
|
37 |
QUESTION = "What is Night of the Living Dead?"
|
38 |
-
CONTEXT = "Night of the Living Dead is a 1968 American independent horror film , directed by George A.
|
39 |
|
40 |
def format_inputs(context: str, question: str):
|
41 |
return f"{question} \n {context}"
|
|
|
16 |
nlp = pipeline("text2text-generation", model='khhuang/zerofec-daqa-t5-base', tokenizer='khhuang/zerofec-daqa-t5-base')
|
17 |
|
18 |
QUESTION = "What is Night of the Living Dead?"
|
19 |
+
CONTEXT = "Night of the Living Dead is a 1968 American independent horror film , directed by George A."
|
20 |
|
21 |
def format_inputs(context: str, question: str):
|
22 |
return f"{question} \n {context}"
|
|
|
35 |
model = AutoModelForSeq2SeqLM.from_pretrained('khhuang/zerofec-daqa-t5-base')
|
36 |
|
37 |
QUESTION = "What is Night of the Living Dead?"
|
38 |
+
CONTEXT = "Night of the Living Dead is a 1968 American independent horror film , directed by George A."
|
39 |
|
40 |
def format_inputs(context: str, question: str):
|
41 |
return f"{question} \n {context}"
|