Files
grass_touching_captcha/constants.py

29 lines
1.5 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import os
JINA_URL = 'https://api.jina.ai/v1/embeddings'
JINA_HEADERS = {
'Content-Type': 'application/json',
}
RICKROLL_LINK = "https://www.youtube.com/watch?v=xvFZjo5PgG0"
UPLOAD_DIR = "uploads"
MINIMUM_COSINE_SIMILARITY = 0.4
WORD_TO_COMPARE = "hand touching grass"
DATABASE_FILE = "data.db"
MINIMUM_OCR_SIMILARITY = 0.55
OCR_CHALLENGE_LENGTH = 4
ACHIEVEMENTS = [
[1, "I went outside!", "Brag to your friends with this one! You went outside the first time in your life. Continue on your journey."],
[3, "Keeping up the streak!", "You went outside 3 times. Great job! (You should get one, btw)"],
[7, "Out for a week!", "7 days of breathing fresh air, you're practically a nature veteran."],
[14, "Two Weeks in the Wild", "Careful, you might be starting to get a tan."],
[30, "One with the Outdoors", "An entire month! Are you sure youre still a gamer?"],
[50, "Grass Connoisseur", "You can now identify at least three different types of grass by touch alone."],
[100, "Master of Chlorophyll", "The grass respects you now."],
[200, "Photosynthesis Apprentice", "You spend so much time outside that plants start thinking you're one of them."],
[365, "Solar-Powered", "A whole year of going outside, you've unlocked infinite vitamin D."],
[500, "Grass Whisperer", "You hear the lawn speaking to you. It's weirdly supportive."],
[1000, "Legendary Lawn Treader", "Songs will be sung of your bravery and your sandals."],
]
UPLOAD_DIR = os.path.join(os.getcwd(), UPLOAD_DIR)