Coder Social home page Coder Social logo

ecelis / celso Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 3.63 MB

NextJS + Next-Auth Face detection based framework

License: Apache License 2.0

Python 44.07% TypeScript 43.73% JavaScript 2.96% CSS 9.16% Shell 0.08%
face-detection face-recognition next-auth nextjs opencv

celso's Introduction

Readme Card

celso's People

Contributors

ecelis avatar

celso's Issues

Error on login on fresh install

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

Add pytest to github actions

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.