Skip to content

Commit 49d9a7e

Browse files
Merge pull request #2753 from avinashkranjan/deepsource-transform-2eb0fbc4
format code with autopep8
2 parents ebec76b + 7a49360 commit 49d9a7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

AI-based Chatbot for Diverse Topics/chatbot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
nlp = spacy.load("en_core_web_sm")
55

66
# Function to get the response from the chatbot
7+
8+
79
def get_response(query):
810
# Process the user query
911
doc = nlp(query)
@@ -63,6 +65,7 @@ def get_response(query):
6365
# If no specific response is generated, provide a default response
6466
return "I'm sorry, but I'm not sure how to help with that."
6567

68+
6669
# Main chat loop
6770
print("Chatbot: Hello! How can I assist you today? Type 'exit' to end the conversation.")
6871
while True:

0 commit comments

Comments
 (0)