We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ebec76b + 7a49360 commit 49d9a7eCopy full SHA for 49d9a7e
AI-based Chatbot for Diverse Topics/chatbot.py
@@ -4,6 +4,8 @@
4
nlp = spacy.load("en_core_web_sm")
5
6
# Function to get the response from the chatbot
7
+
8
9
def get_response(query):
10
# Process the user query
11
doc = nlp(query)
@@ -63,6 +65,7 @@ def get_response(query):
63
65
# If no specific response is generated, provide a default response
64
66
return "I'm sorry, but I'm not sure how to help with that."
67
68
69
# Main chat loop
70
print("Chatbot: Hello! How can I assist you today? Type 'exit' to end the conversation.")
71
while True:
0 commit comments