yusiqo commited on
Commit
b893cd4
·
verified ·
1 Parent(s): 470b8be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -23,8 +23,9 @@ chatbot = train_bot(training_data)
23
  def run_chatbot():
24
  print("Merhaba! Benim adım ChatBot. Size nasıl yardımcı olabilirim? (Çıkış için 'çıkış' yazabilirsiniz)")
25
 
26
- while True:
27
- user_input = st.text_area("Siz: ")
 
28
  response = chatbot.respond(user_input)
29
  st.write("ChatBot: "+response)
30
 
 
23
  def run_chatbot():
24
  print("Merhaba! Benim adım ChatBot. Size nasıl yardımcı olabilirim? (Çıkış için 'çıkış' yazabilirsiniz)")
25
 
26
+
27
+ user_input = st.text_area("Siz: ")
28
+ if user_input:
29
  response = chatbot.respond(user_input)
30
  st.write("ChatBot: "+response)
31