Commit Graph

45 Commits

Author SHA1 Message Date
csd4ni3l
d78bf7f26b only return text in generate_challenge 2025-08-12 16:42:12 +02:00
csd4ni3l
20350d0e85 FIx registering not working by now redirecting to register and challenges having a completed attribute 2025-08-12 16:38:11 +02:00
csd4ni3l
58130cb508 decrease default challenge word amount to 1 to make it easier to pass 2025-08-12 15:57:29 +02:00
csd4ni3l
ea4e4899d0 fix generate_challenge not working due to wrong method and only get the challenge if a username was supplied 2025-08-12 15:55:30 +02:00
csd4ni3l
37429706dd fix register not getting challenge due to mistyping 2025-08-12 15:52:50 +02:00
csd4ni3l
c5f882c32c fix register not working due to wrong url_for parameter and update README.md for a better solution to easyocr 2025-08-12 15:51:15 +02:00
csd4ni3l
27f379e0ca remove accidental debug flag(again) 2025-08-12 15:18:31 +02:00
csd4ni3l
623bd155cb fix leaderboard looks, add OCR, make the captcha only show if you add a username and password 2025-08-12 15:17:43 +02:00
csd4ni3l
453250b862 update register fields i missed 2025-08-10 17:01:09 +02:00
csd4ni3l
0307999db7 remove accidental debug flag i left in 2025-08-10 16:58:48 +02:00
csd4ni3l
ba9898a44a add new fields to user so we can track grass touching activity later, add part of the application part which currently includes a homepage and a leaderboard 2025-08-10 16:57:55 +02:00
csd4ni3l
09defab6bc fix wrong commas in database schema 2025-08-09 14:29:29 +02:00
csd4ni3l
5da21d3462 fix wrong order of values in insert 2025-08-09 14:26:55 +02:00
csd4ni3l
3d2dd3d8de change order of values in image insert 2025-08-09 14:25:07 +02:00
csd4ni3l
3309fb840e make image hash the primary key of the images table 2025-08-09 14:22:41 +02:00
csd4ni3l
c34e73d583 revert to not using flashed messages 2025-08-09 14:19:58 +02:00
csd4ni3l
27636a4429 add unathorized access flash 2025-08-09 13:03:54 +02:00
csd4ni3l
dc93c229d4 convert image uuid into string before using it 2025-08-09 12:47:58 +02:00
csd4ni3l
638193fcda Fix username not gathered in the upload route 2025-08-09 12:46:57 +02:00
csd4ni3l
75ac77dea8 make the password a password field and add username when uploading the file 2025-08-09 12:45:46 +02:00
csd4ni3l
c0eb5b59dd show error messages instead of Unknown Error, add an Images table so now the same images cant be uploaded multiple times 2025-08-09 12:42:02 +02:00
csd4ni3l
471cd21993 remove disabled flag for login button 2025-08-09 12:25:37 +02:00
csd4ni3l
2818b74d14 update requirements.txt to include bcrypt 2025-08-09 12:23:26 +02:00
csd4ni3l
54ed6eb0f4 Add experimental sqlite database and login/register 2025-08-09 12:22:01 +02:00
csd4ni3l
3d5ea65b16 remove username field which does not exist in upload route 2025-08-09 11:41:43 +02:00
csd4ni3l
104b87d555 fix png not working because of removing too many bytes of data url header 2025-08-09 11:39:11 +02:00
csd4ni3l
a8ee1c90ae add word vector cache with JSON and add a constant for the word to compare with 2025-08-09 10:30:57 +02:00
csd4ni3l
ba811d3ce7 decrease minimum similarity to make sure images pass 2025-08-09 00:34:00 +02:00
csd4ni3l
5b490b0aae re-disable button during loading 2025-08-08 23:44:29 +02:00
csd4ni3l
bf1decc912 decrease image size for faster verification and less token usage 2025-08-08 23:30:51 +02:00
csd4ni3l
7b7b23bbc0 fix image resizing requiring 2 paths instead of 1 2025-08-08 23:27:21 +02:00
csd4ni3l
cccd7a1e30 Update requirements.txt to include pillow for image resizing 2025-08-08 23:26:04 +02:00
csd4ni3l
e2f39aa3c9 Add minimum cosine similarity constant and increase it, resize image files after saving and before sending to Jina 2025-08-08 23:24:43 +02:00
csd4ni3l
3f304071e3 fix model again and fix images being inputted as text 2025-08-08 23:14:45 +02:00
csd4ni3l
881ccbda13 fix wrong model 2025-08-08 22:58:19 +02:00
csd4ni3l
f0b3a73a6d remove debug print and replace http with https 2025-08-08 19:27:22 +02:00
csd4ni3l
25f779861b decrease minimum cosine similarity to make it work 2025-08-08 18:51:36 +02:00
csd4ni3l
42a51a57e7 fix wrong url being given to jina 2025-08-08 18:50:20 +02:00
csd4ni3l
a4fe1e9230 fix an issue where you couldnt resubmit images after an error happened 2025-08-08 18:46:35 +02:00
csd4ni3l
a8d47b35e0 reset file input after incorrect image submission 2025-08-08 18:33:17 +02:00
csd4ni3l
d6d2508fba Make uploads directory automatically 2025-08-08 18:24:33 +02:00
csd4ni3l
846b596adb Remove debug flag 2025-08-08 18:20:41 +02:00
csd4ni3l
b95db2e951 add host and port environment variables 2025-08-08 18:19:34 +02:00
csd4ni3l
3fcbbcfe34 Add requirements.txt and README 2025-08-08 18:11:04 +02:00
csd4ni3l
8ab56b218f First commit 2025-08-08 18:08:41 +02:00