billusanda007 commited on
Commit
ea7e732
1 Parent(s): ba3bedb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -163,13 +163,14 @@ def main():
163
  response = "You are welcome!"
164
  flag = 1
165
 
166
- if st.button("Submit") and flag == 0:
167
- response = get_response(user_input)
168
- st.write("Bot Response:")
169
- st.write(response)
170
- if st.button("Submit") and flag ==1:
171
- st.write("Bot Response:")
172
- st.write(response)
 
173
 
174
 
175
  if __name__ == '__main__':
 
163
  response = "You are welcome!"
164
  flag = 1
165
 
166
+ if st.button("Submit"):
167
+ if flag ==0:
168
+ response = get_response(user_input)
169
+ st.write("Bot Response:")
170
+ st.write(response)
171
+ if flag ==1:
172
+ st.write("Bot Response:")
173
+ st.write(response)
174
 
175
 
176
  if __name__ == '__main__':