when I run the code in replit and type in "what is the time", it answers in London time. I have have heard of this as an issue and looked at ways to fix it but I had no luck. I have no one else to ask so please any answers?
'import os
from datetime import datetime
from pytz import timezone
import time
import datetime
from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
from chatterbot.trainers import ChatterBotCorpusTrainer
import chatterbot_corpus
chatbot = ChatBot(
"SQLMemoryTerminal",
logic_adapters=[
"chatterbot.logic.MathematicalEvaluation",
"chatterbot.logic.TimeLogicAdapter",
"chatterbot.logic.BestMatch"
]
)
def talk_to(chatbot):
keep_going = "yes"
while keep_going == "yes":
user_input = input("Type Here: ")
response = chatbot.get_response(user_input)
print(response)
trainer = ListTrainer(chatbot)
def train(self, conversation):
trainer.train([
"How are you?",
"I am good.",
"That is good to hear.",
"Thank you",
"You are welcome.",
])
...
for conversation_count, text in enumerate(conversation):
...
if user_input == "quit":
keep_going = "no"
talk_to(chatbot)'
CodePudding user response:
