Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ with tab1:
|
|
62 |
# perform question answering when "get answer" button clicked
|
63 |
button = st.button("Get answer", key="textInput")
|
64 |
if button:
|
65 |
-
if context
|
66 |
st.warning ("Please enter BOTH the context and the question")
|
67 |
else:
|
68 |
question_answering(context, question)
|
|
|
62 |
# perform question answering when "get answer" button clicked
|
63 |
button = st.button("Get answer", key="textInput")
|
64 |
if button:
|
65 |
+
if context=="" and question=="":
|
66 |
st.warning ("Please enter BOTH the context and the question")
|
67 |
else:
|
68 |
question_answering(context, question)
|