kxx-kkk commited on
Commit
0239b74
1 Parent(s): e0567f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 is None and question is None:
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)