Chatop commited on
Commit
1c494e8
1 Parent(s): c4619e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- #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.'
 
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.'