Funny AI Project
π€ Funny AI Project
AI Mood Detector
Idea
The
“AI” looks at what the user types and guesses their mood.
Then it gives a funny
response.
Example
Input: I
am very hungry
AI: “π You sound hungry! Go find pizza immediately!”
Step 1: Open Google Colab
Go
to:
https://colab.research.google.com
Click
New
Notebook.
Step 2: Copy This Code
import random print("π€ Welcome to Funny AI Mood Detector!")print("------------------------------------") text = input("Tell me something about how you feel today: ").lower() happy_words = ["happy", "great", "good", "awesome", "fun"]sad_words = ["sad", "bad", "tired", "cry", "upset"]hungry_words = ["hungry", "food", "eat", "pizza", "burger"] if any(word in text for word in happy_words): responses = [ "π Wow! Someone is super happy today!", "π Happiness detected! Keep smiling!", "π€ My sensors say you are in a great mood!" ] print(random.choice(responses)) elif any(word in text for word in sad_words): responses = [ "π€ Don't worry! Tomorrow will be better!", "π Sending you virtual happiness!", "π« Maybe chocolate will help!" ] print(random.choice(responses)) elif any(word in text for word in hungry_words): responses = [ "π Emergency! Pizza required immediately!", "π Burger alert! Feed the human!", "π€ My AI says: Snack time!" ] print(random.choice(responses)) else: responses = [ "π€ My AI brain is confused!", "π€ I need more training data!", "π§ Hmm... tell me more!" ] print(random.choice(responses))
Step 3: Run the Program
Click
▶ Run in Colab.
Type
something like:
I am hungry
or
I feel very happy today
The
AI will give a funny
response.
Step 4: Make It More Fun
Kids , you can improve the project by adding:
·
More
moods
·
More
funny
replies
·
Emojis
πππ€
Example
moods:
·
sleepy
π΄
·
angry
π‘
·
bored
π
Step 5: Dear Kids, you can present the Project
Dear Students, you can explain like this:
Project Title: Funny AI Mood Detector
Problem: Computers cannot understand
human emotions easily.
Idea: Use Python to detect mood
from words and respond with funny messages.
Result: The AI guesses moods and
replies humorously.
Comments
Post a Comment