Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from transformers import AutoTokenizer
|
|
| 7 |
|
| 8 |
def question_answer(context, question):
|
| 9 |
# Initializing the pipeline for the question answering model
|
| 10 |
-
question_answerer = pipeline("question-answering", model="ADHD_Test_qa_model")
|
| 11 |
# Answering from the trained model
|
| 12 |
result = question_answerer(question=question, context=context)
|
| 13 |
return result["answer"]
|
|
|
|
| 7 |
|
| 8 |
def question_answer(context, question):
|
| 9 |
# Initializing the pipeline for the question answering model
|
| 10 |
+
question_answerer = pipeline("question-answering", model="Only-Mike/ADHD_Test_qa_model")
|
| 11 |
# Answering from the trained model
|
| 12 |
result = question_answerer(question=question, context=context)
|
| 13 |
return result["answer"]
|