zakerytclarke commited on
Commit
3366ac8
·
verified ·
1 Parent(s): 580cfe1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -350,10 +350,10 @@ def main():
350
 
351
  user_input = st.chat_input("Ask me anything")
352
 
353
-
354
- with st.spinner('Generating Response...'):
355
- response = handle_chat(user_prompt, user_suggested_input or user_input, teapot_ai)
356
-
357
 
358
  if __name__ == "__main__":
359
  main()
 
350
 
351
  user_input = st.chat_input("Ask me anything")
352
 
353
+ if user_input:
354
+ with st.spinner('Generating Response...'):
355
+ response = handle_chat(user_prompt, user_suggested_input or user_input, teapot_ai)
356
+
357
 
358
  if __name__ == "__main__":
359
  main()