Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -170,9 +170,9 @@ elif menu == "Evaluation":
|
|
170 |
Feel free to query the pre-trained QA-NLU model using the buttons below.
|
171 |
''')
|
172 |
|
173 |
-
tokenizer = AutoTokenizer.from_pretrained("AmazonScience/qanlu"
|
174 |
|
175 |
-
model = AutoModelForQuestionAnswering.from_pretrained("AmazonScience/qanlu"
|
176 |
|
177 |
qa_pipeline = pipeline('question-answering', model=model, tokenizer=tokenizer)
|
178 |
|
|
|
170 |
Feel free to query the pre-trained QA-NLU model using the buttons below.
|
171 |
''')
|
172 |
|
173 |
+
tokenizer = AutoTokenizer.from_pretrained("AmazonScience/qanlu")#, use_auth_token=True)
|
174 |
|
175 |
+
model = AutoModelForQuestionAnswering.from_pretrained("AmazonScience/qanlu")#, use_auth_token=True)
|
176 |
|
177 |
qa_pipeline = pipeline('question-answering', model=model, tokenizer=tokenizer)
|
178 |
|