Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from transformers import pipeline
|
2 |
|
3 |
# Create a question answering pipeline
|
4 |
-
qa_pipeline = pipeline("question-answering", model='Jahanzeb1/BERT_QA_model', tokenizer=
|
5 |
|
6 |
# Now you can use the pipeline to answer questions
|
7 |
question = "How did he die?"
|
|
|
1 |
from transformers import pipeline
|
2 |
|
3 |
# Create a question answering pipeline
|
4 |
+
qa_pipeline = pipeline("question-answering", model='Jahanzeb1/BERT_QA_model', tokenizer='Jahanzeb1/BERT_QA_model')
|
5 |
|
6 |
# Now you can use the pipeline to answer questions
|
7 |
question = "How did he die?"
|