Spaces:
Build error
Build error
bentrevett
commited on
Commit
•
883e66f
1
Parent(s):
d301690
automatically predict when space starts
Browse files
app.py
CHANGED
@@ -33,7 +33,8 @@ submit = st.button('Predict')
|
|
33 |
with st.spinner("Loading model..."):
|
34 |
pipe = get_pipe()
|
35 |
|
36 |
-
if (submit and len(context.strip()) > 0 and len(question.strip()) > 0)
|
|
|
37 |
|
38 |
prediction = pipe(question, context)
|
39 |
|
|
|
33 |
with st.spinner("Loading model..."):
|
34 |
pipe = get_pipe()
|
35 |
|
36 |
+
if (submit and len(context.strip()) > 0 and len(question.strip()) > 0) or \
|
37 |
+
(len(context.strip()) > 0 and len(question.strip()) > 0):
|
38 |
|
39 |
prediction = pipe(question, context)
|
40 |
|