ecelis / celso Goto Github PK
View Code? Open in Web Editor NEWNextJS + Next-Auth Face detection based framework
License: Apache License 2.0
NextJS + Next-Auth Face detection based framework
License: Apache License 2.0
Stacktrace:
127.0.0.1 - - [21/May/2023 19:49:01] "POST /match HTTP/1.1" 500 -
Traceback (most recent call last):
File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask/app.py", line 2213, in __call__
return self.wsgi_app(environ, start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask/app.py", line 2193, in wsgi_app
response = self.handle_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
^^^^^^^^^^^^^^^^^^^^
File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask/app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask/app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
^^^^^^^^^^^^^^^^^^^^
File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ecelis/Projects/celso/faces/faces/__main__.py", line 65, in duplicate
result = detect.match(json_data['picture'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ecelis/Projects/celso/faces/faces/detect.py", line 95, in match
result = self.match_encodings(image_encodings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ecelis/Projects/celso/faces/faces/detect.py", line 67, in match_encodings
return {'error': error, 'success': False}
^^^^^^^^^^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'error' where it is not associated with a value
Currently after running bin/create_db.py
there is no user registered, hence register page is not accessible.
Check next-auth
Something like
{
'error': 'string',
'success': true,
'data': 'object'
}
It always detects one face, with the provided test tests/none.jpg
image file. Related to #29
Is your feature request related to a problem? Please describe.
Flask API has no tests, there is no way to know if it always work after changes.
Describe the solution you'd like
Add pytest https://flask.palletsprojects.com/en/2.0.x/testing/
Describe alternatives you've considered
Use OpenAPI and Postman is an alternative.
Is your feature request related to a problem? Please describe.
Automated testing should be run in github actions
Describe the solution you'd like
Add a github action to run pytest
The system might work pulling docker images from register and connect to a networked mongodb host.
Some form of RBAC required
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.