Skip to content

Commit

Permalink
Create conversation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pemagrg1 authored Nov 18, 2018
1 parent 21e6334 commit 8a0264c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions conversation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import aiml

k = aiml.Kernel()
k.learn("learning_file_list.aiml")
k.respond("LEARN AIML")

while True:
reply = k.respond(input("User > "))
if reply:
print("bot > ", reply)
else:
print("bot > :) ", )


0 comments on commit 8a0264c

Please sign in to comment.