Skip to content

Instantly share code, notes, and snippets.

View arjunghosh's full-sized avatar

Arjun Ghosh arjunghosh

View GitHub Profile
@arjunghosh
arjunghosh / .py
Created February 16, 2023 14:27
ChatGPT generated code for a simple AI chatbot
import spacy
# Load a pre-trained NLP model from spaCy
nlp = spacy.load("en_core_web_sm")
# Define a function to handle user input and generate a response
def respond(input):
# Parse the user input using the NLP model
doc = nlp(input)