bourdoiscatie commited on
Commit
0025234
1 Parent(s): fcd58e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,9 +16,9 @@ st.sidebar.image(image, caption=None, width=None, use_column_width=None, clamp=F
16
  def load_model(version):
17
  if version == "QAmemBERT1-base":
18
  return pipeline('question-answering', model='CATIE-AQ/QAmembert', tokenizer='CATIE-AQ/QAmembert')
19
- elif version == "QAmemBERT2":
20
  return pipeline('question-answering', model='CATIE-AQ/QAmembert2', tokenizer='CATIE-AQ/QAmembert2')
21
- elif version == "QAmemBERTa":
22
  return pipeline('question-answering', model='CATIE-AQ/QAmemberta', tokenizer='CATIE-AQ/QAmemberta')
23
  else:
24
  return pipeline('question-answering', model='CATIE-AQ/QAmembert-large', tokenizer='CATIE-AQ/QAmembert-large')
 
16
  def load_model(version):
17
  if version == "QAmemBERT1-base":
18
  return pipeline('question-answering', model='CATIE-AQ/QAmembert', tokenizer='CATIE-AQ/QAmembert')
19
+ if version == "QAmemBERT2":
20
  return pipeline('question-answering', model='CATIE-AQ/QAmembert2', tokenizer='CATIE-AQ/QAmembert2')
21
+ if version == "QAmemBERTa":
22
  return pipeline('question-answering', model='CATIE-AQ/QAmemberta', tokenizer='CATIE-AQ/QAmemberta')
23
  else:
24
  return pipeline('question-answering', model='CATIE-AQ/QAmembert-large', tokenizer='CATIE-AQ/QAmembert-large')