etweedy commited on
Commit
ff48e26
·
1 Parent(s): 985977f

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -43,6 +43,16 @@ def get_model():
43
  with st.spinner('Loading the model...'):
44
  model, tokenizer = get_model()
45
 
 
 
 
 
 
 
 
 
 
 
46
  input_container = st.container()
47
  st.divider()
48
  response_container = st.container()
 
43
  with st.spinner('Loading the model...'):
44
  model, tokenizer = get_model()
45
 
46
+ st.header('RoBERTa Q&A model')
47
+
48
+ st.markdown('''
49
+ This app demonstrates the answer-retrieval capabilities of a finetuned RoBERTa (Robustly optimized Bidirectional Encoder Representations from Transformers) model. The [RoBERTa base model](https://huggingface.co/roberta-base) was fine-tuned on version 2 of the [SQuAD (Stanford Question Answering Dataset) dataset](https://huggingface.co/datasets/squad_v2), a dataset of context-question-answer triples. The objective of the model is to retrieve the answer to the question from the context paragraph.
50
+
51
+ Version 2 incorporates the 100,000 samples from Version 1.1, along with 50,000 'unanswerable' questions, i.e. samples in the question cannot be answered using the context given.
52
+
53
+ Please type or paste a context paragraph and question you'd like to ask about it. The model will attempt to answer the question, or otherwise will report that it cannot.
54
+ ''')
55
+
56
  input_container = st.container()
57
  st.divider()
58
  response_container = st.container()