Spaces:
Runtime error
Runtime error
Commit
·
c28ffd1
1
Parent(s):
1814a57
changed question wording to improve performance
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def load_pipeline(model_cp, tokenizer_cp):
|
|
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,7 +53,7 @@ if uploaded_file is not None:
|
|
53 |
|
54 |
# Run inference on first example
|
55 |
first_example = df['review'][0]
|
56 |
-
question = "
|
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
|