aidan-o-brien commited on
Commit
c28ffd1
·
1 Parent(s): 1814a57

changed question wording to improve performance

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ def load_pipeline(model_cp, tokenizer_cp):
17
 
18
 
19
  def choose_model():
20
- with st.sidebar: # streamlit doesn't know how to has this by default?
21
  st.write("# Model Selection")
22
  model_cp = st.selectbox('Select model for inference',
23
  ('deepset/roberta-base-squad2',
@@ -53,7 +53,7 @@ if uploaded_file is not None:
53
 
54
  # Run inference on first example
55
  first_example = df['review'][0]
56
- question = "how to improve this recipe?"
57
  answer = question_answer(question=question, context=first_example)
58
 
59
  # Present results
 
17
 
18
 
19
  def choose_model():
20
+ with st.sidebar:
21
  st.write("# Model Selection")
22
  model_cp = st.selectbox('Select model for inference',
23
  ('deepset/roberta-base-squad2',
 
53
 
54
  # Run inference on first example
55
  first_example = df['review'][0]
56
+ question = "How was the recipe improved?"
57
  answer = question_answer(question=question, context=first_example)
58
 
59
  # Present results