Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ from transformers.tokenization_auto import AutoTokenizer
|
|
9 |
|
10 |
#classifier = pipeline("question-answering", model="deepset/roberta-base-squad2")
|
11 |
|
12 |
-
|
13 |
-
|
14 |
#QA_input = {
|
15 |
# 'question': 'Why is model conversion important?',
|
16 |
# 'context': 'The option to convert models between FARM and transformers gives freedom to the user and let people easily switch between frameworks.'
|
|
|
9 |
|
10 |
#classifier = pipeline("question-answering", model="deepset/roberta-base-squad2")
|
11 |
|
12 |
+
model_name = "deepset/xlm-roberta-base-squad2"
|
13 |
+
nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
|
14 |
#QA_input = {
|
15 |
# 'question': 'Why is model conversion important?',
|
16 |
# 'context': 'The option to convert models between FARM and transformers gives freedom to the user and let people easily switch between frameworks.'
|