Spaces:
Running
Running
File size: 349 Bytes
7381c93 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
"""Run main.
python -m convbot
"""
from convbot import convbot
def main():
print("Bot: Talk to me (type quit to exit)")
while 1:
text = input("You: ")
if text.lower().strip() in ["quit", "exit", "stop"]:
break
resp = convbot(text)
print("Bot: ", resp)
if __name__ == "__main__":
main()
|