nlxcaptcha
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: nlxcaptcha | ||
| Version: 1.8 | ||
| Version: 1.9 | ||
| Summary: Tell "iPad Kids" and "Non-iPad Kids" apart using OpenAI API in this easy-to-integrate captcha. | ||
@@ -14,1 +14,2 @@ Home-page: https://github.com/nlckysolutions/NLX-Captcha | ||
| Requires-Dist: tk | ||
| Requires-Dist: sv-ttk |
| openai | ||
| tk | ||
| sv-ttk |
@@ -6,2 +6,4 @@ import tkinter as tk | ||
| from tkinter import ttk | ||
| import sv_ttk | ||
| import random | ||
@@ -35,4 +37,11 @@ class NLXCaptcha: | ||
| self.window.geometry("400x200") | ||
| prompt = tk.Label(self.window, text="Write a short paragraph about anything you desire.") | ||
| topiclist = [ | ||
| "What is a cat?", | ||
| "How to make ice?", | ||
| "How does a smartphone boot up?", | ||
| "What do you use an iPad for? If you don't have one, then what do you do on a rainy day?" | ||
| ] | ||
| global topic | ||
| topic = random.choice(topiclist) | ||
| prompt = tk.Label(self.window, text=f"Write a short paragraph about '{topic}'") | ||
| prompt.pack(pady=20) | ||
@@ -46,2 +55,4 @@ | ||
| sv_ttk.set_theme("dark") | ||
| self.window.mainloop() | ||
@@ -61,3 +72,3 @@ | ||
| f"You are an AI tasked with identifying whether a given text was written by a child, specifically one who frequently uses an iPad or similar device." | ||
| f" Children who are considered 'iPad kids' often write with simple sentence structures, basic vocabulary, and have a casual tone. HOWEVER, if there is proper punctuation, and the information provided is not imaginative, straight and to the point, and also uses synonyms, then they are NOT an iPad kid." | ||
| f" Children who are considered 'iPad kids' often write with simple sentence structures, basic vocabulary, and have a casual tone. HOWEVER, if there is proper punctuation, and the information provided is not imaginative, straight and to the point, and also uses synonyms, then they are NOT an iPad kid. They should also stay consistent with the topic they were given. In this case, the topic they should write about is '{topic}'" | ||
| f" The device the user is using is: {self.device}. Keep in mind that 'iPad kids' are most likely to use an iPad or a phone." | ||
@@ -64,0 +75,0 @@ f" Be more strict if the difficulty level is high. Difficulty: {self.difficulty}/10." |
+2
-1
| Metadata-Version: 2.1 | ||
| Name: nlxcaptcha | ||
| Version: 1.8 | ||
| Version: 1.9 | ||
| Summary: Tell "iPad Kids" and "Non-iPad Kids" apart using OpenAI API in this easy-to-integrate captcha. | ||
@@ -14,1 +14,2 @@ Home-page: https://github.com/nlckysolutions/NLX-Captcha | ||
| Requires-Dist: tk | ||
| Requires-Dist: sv-ttk |
+2
-1
@@ -5,3 +5,3 @@ from setuptools import setup, find_packages | ||
| name='nlxcaptcha', | ||
| version='1.8', | ||
| version='1.9', | ||
| packages=find_packages(), | ||
@@ -11,2 +11,3 @@ install_requires=[ | ||
| 'tk', | ||
| 'sv-ttk', | ||
| ], | ||
@@ -13,0 +14,0 @@ description='Tell "iPad Kids" and "Non-iPad Kids" apart using OpenAI API in this easy-to-integrate captcha.', |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
7799
7.68%105
14.13%