Lee1112061 commited on
Commit
88ac584
1 Parent(s): 098dab2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -99,11 +99,12 @@ def main():
99
 
100
  # clicked==True only when the button is clicked
101
  clicked = st.form_submit_button("Submit")
102
- answer('')
103
  # st.title("Answer :")
104
  if clicked:
105
  results = Predict(question = question, context = context)
106
  return answer(results)
 
 
107
  # st.write(results)
108
 
109
 
 
99
 
100
  # clicked==True only when the button is clicked
101
  clicked = st.form_submit_button("Submit")
 
102
  # st.title("Answer :")
103
  if clicked:
104
  results = Predict(question = question, context = context)
105
  return answer(results)
106
+ else:
107
+ return answer('')
108
  # st.write(results)
109
 
110