Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,13 @@ def bag_of_words(s, words):

return numpy.array(bag)

op = input("What is your name? ")

#chat function that takes input and takes the approprate response from the intents.json file.
def chat():
print("Start talking with SchoolBot (type quit to stop)!")
while True:
inp = input("You: ")
inp = input(op + ': ')
if inp.lower() == "quit":
break

Expand Down