-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathai_detector.py
18 lines (14 loc) · 3.92 KB
/
ai_detector.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from detector import OpenaiDetector
sentence = "As an AI language model, I don't have personal preferences, including a favorite color. However, I can still provide some information and insights about colors. Colors have a significant impact on our emotions and can affect our mood and behavior. Each color has a unique meaning and symbolism that can be interpreted differently by different cultures and individuals. One of the most popular and commonly used colors is blue. Blue is often associated with calmness, serenity, and stability. It is the color of the sky and the ocean, and it has a calming effect on our mind and body. It is often used in branding and marketing to create a sense of trust and reliability. Blue is also a versatile color that can be used in various shades and tones. Light blue, for example, is often associated with innocence, purity, and clarity, while dark blue is often associated with authority, power, and sophistication. Navy blue is a popular color for business suits, as it exudes professionalism and competence. In some cultures, blue has different meanings and associations. In China, for example, blue is associated with immortality and longevity, while in Hinduism, blue is the color of the god Krishna and is considered sacred. Another popular color is red. Red is often associated with passion, energy, and excitement. It is a vibrant and attention-grabbing color that is often used in advertising and marketing to create a sense of urgency and excitement. Red can also have negative connotations, such as danger and warning. Stop signs, for example, are red to signal drivers to stop. In some cultures, red is associated with luck and prosperity. In China, red is a popular color for weddings and is believed to bring good fortune to the newlyweds. Green is another popular color that is often associated with nature, growth, and harmony. It is the color of plants and trees and is often used in branding and marketing for eco-friendly and sustainable products. Green is also associated with health and wellness and is often used in hospitals and clinics to create a calming and healing environment. Yellow is a bright and cheerful color that is often associated with happiness, optimism, and energy. It is the color of the sun and is often used in branding and marketing to create a sense of warmth and friendliness. Yellow can also be used to signal caution, such as in warning signs or construction sites. Purple is a regal and luxurious color that is often associated with royalty, power, and wealth. It is a popular color in fashion and cosmetics, as it exudes sophistication and elegance. Purple can also have spiritual connotations, such as in the practice of meditation and mindfulness. Black is a classic and timeless color that is often associated with sophistication, elegance, and mystery. It is a popular color for formal wear, as it exudes professionalism and seriousness. Black can also have negative connotations, such as mourning and grief. White is a clean and pure color that is often associated with innocence, simplicity, and clarity. It is a popular color for weddings, as it symbolizes purity and new beginnings. White can also have negative connotations, such as sterility and emptiness. In conclusion, colors are a fascinating aspect of our daily lives. They have the power to influence our emotions and behavior and can be interpreted differently by different cultures and individuals. Whether it's blue, red, green, yellow, purple, black, or white, each color has its unique meaning and symbolism that can be appreciated and enjoyed."
with open('openai_bearer.txt') as file:
# create a variable called token
# assign it to whatever is in my token.txt
bearer_token = file.readline()
file.close()
# creating an openaidetector object
# my bearer token will be the parameter
od = OpenaiDetector(bearer_token)
# detect is the function
# sentence is the parameter we're passing
response = od.detect(sentence)
print(response)