Skip to content

Commit

Permalink
Update demo file.
Browse files Browse the repository at this point in the history
  • Loading branch information
zake7749 committed Oct 27, 2016
1 parent 2c61aee commit 5121143
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions demo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import console
import Chatbot.console as console
import Chatbot.chatbot as Chatbot

c = console.Console()
speech = input('Input a sentence:')
res,path = c.rule_match(speech)
c.write_output(speech,res,path)
while True:
speech = input('Input a sentence:')
res,path = c.rule_match(speech)
c.write_output(speech,res,path)

#chatter = Chatbot.Chatbot()
#chatter.waiting_loop()

0 comments on commit 5121143

Please sign in to comment.