{"id":23383155,"url":"https://github.com/fostroll/modelsrv0","last_synced_at":"2025-04-08T09:30:17.791Z","repository":{"id":202584758,"uuid":"438663681","full_name":"fostroll/modelsrv0","owner":"fostroll","description":"The FastAPI wrapper for ML model","archived":false,"fork":false,"pushed_at":"2021-12-16T09:05:04.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T06:36:00.645Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fostroll.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-12-15T14:42:27.000Z","updated_at":"2021-12-16T09:05:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa7f1b33-a7b4-4a0c-afdc-6d2daa3f3cb6","html_url":"https://github.com/fostroll/modelsrv0","commit_stats":null,"previous_names":["fostroll/modelsrv0"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fostroll%2Fmodelsrv0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fostroll%2Fmodelsrv0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fostroll%2Fmodelsrv0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fostroll%2Fmodelsrv0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fostroll","download_url":"https://codeload.github.com/fostroll/modelsrv0/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247813006,"owners_count":21000411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-21T22:17:44.407Z","updated_at":"2025-04-08T09:30:17.717Z","avatar_url":"https://github.com/fostroll.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# modelsrv0\n\nThe simple FastAPI wrapper for ML model.\n\n## Requirements\n\n```sh\npip install python-multipart\npip install fastapi\npip install uvicorn\npip install passlib\npip install python-jose\n```\n\n## Usage\n\n1. Edit `config.yaml`. At least, you wanna change `jwt_secret_key` value with\n```sh\nopenssl rand -hex 512\n```\n\n2. Edit user list in `config_users.yaml`. The hash for `password` key may be\ngenerated with\n```sh\npython make_hash.py \u003cpassword\u003e\n```\n\n3. Replace script `server/model/spec.py` with your own, that is implemented\nmethods `model_load(path, device='cpu')` and `model_predict(text,\nwith_intents=True, probs=True, threshold=.5, only_true=False)`. Scripts\n`server/model/model*.py` may be removed or replaced with your own model\ndefinition.\n\n4. Put the model in the directory `model0` (or change the `model_name` in\n`config.yaml`).\n\n5. Edit `run.sh` or `run.bat` and start the server.\n\n## License\n\n***modelsrv0*** is released under the Creative Commons License. See the\n[LICENSE](https://github.com/fostroll/srv_zero/blob/master/LICENSE) file for\nmore details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffostroll%2Fmodelsrv0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffostroll%2Fmodelsrv0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffostroll%2Fmodelsrv0/lists"}