Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def AImodel(text,questionText):
|
|
| 18 |
|
| 19 |
|
| 20 |
# a) Get predictions
|
| 21 |
-
nlp = pipeline('
|
| 22 |
QA_input = {
|
| 23 |
'question': questionText,
|
| 24 |
'context': text
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
# a) Get predictions
|
| 21 |
+
nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
|
| 22 |
QA_input = {
|
| 23 |
'question': questionText,
|
| 24 |
'context': text
|