List of "Deez Nuts" jokes
jokes = [ "Hey, have you heard about the new company that sells nuts? It's called 'Deez Nuts'.", "Do you know what time it is? It's 'Deez Nuts' o'clock!", "What did the squirrel say when he saw the new store? 'Deez Nuts!'", "Why did the peanut go to the doctor? Because it had 'Deez Nuts' disease!", "What did the farmer say when he lost his nuts? 'I guess I need some 'Deez Nuts'!'" ]
def get_joke(): return random.choice(jokes)
def chatbot(): print("Hello! I'm your Deez Nuts joke bot. Type 'joke' to hear a joke or 'quit' to exit.")
while True:
user_input = input("> ").strip().lower()
if user_input == 'joke':
print(get_joke())
elif user_input == 'quit':
print("Goodbye! Hope you enjoyed the jokes!")
break
else:
print("I don't understand that command. Type 'joke' to hear a joke or 'quit' to exit.")
if name == "main": chatbot()
Inference API (serverless) does not yet support fastai models for this pipeline type.