https://github.com/jackey8616/ml-sso-validation-code
  
  
    For SOME SCHOOL's SSO validation code recognition. 
    https://github.com/jackey8616/ml-sso-validation-code
  
        Last synced: 8 months ago 
        JSON representation
    
For SOME SCHOOL's SSO validation code recognition.
- Host: GitHub
 - URL: https://github.com/jackey8616/ml-sso-validation-code
 - Owner: jackey8616
 - Created: 2018-06-08T09:46:23.000Z (over 7 years ago)
 - Default Branch: master
 - Last Pushed: 2022-12-08T02:08:55.000Z (almost 3 years ago)
 - Last Synced: 2025-02-26T18:49:37.698Z (8 months ago)
 - Language: Python
 - Size: 7.98 MB
 - Stars: 2
 - Watchers: 1
 - Forks: 2
 - Open Issues: 15
 - 
            Metadata Files:
            
- Readme: README.md
 
 
Awesome Lists containing this project
README
          # ML-SSO-validation-code
[](https://hub.docker.com/r/clooooode/ml-sso-validation-code/builds/) [](https://hub.docker.com/r/clooooode/ml-sso-validation-code/tags/)  
For SOME SCHOOL's SSO validation code recognition.
## Usage
Before use, you have to host the service first.  
Here provide local and docker way to host it.
### With machine
```sh
$ pip3 install -r requirements-model.txt
$ python3 app.py
```
### With Docker
```sh
build image:
$ docker build -t sso-validate-flask-server:latest .
run image:
$ docker run -ti -d -p 127.0.0.1:5000:5000 --restart always sso-validate-flask-server:latest 
```
### With Docker-compose
```sh
Start container:
$ docker-compose up -d
Stop container:
$ docker-compose down
View logs:
$ docker-compose logs -f
```
### Predict
In run.py have some example usage to interact with service.
```sh
$ pip3 install -r requirements-run.txt
$ python3 run.py
```