{"id":19316378,"url":"https://github.com/ivangolt/text_tone_service","last_synced_at":"2026-04-11T19:32:04.721Z","repository":{"id":242108530,"uuid":"808704988","full_name":"ivangolt/text_tone_service","owner":"ivangolt","description":"ML web app for predict text tone using FastAPI and Streamlit","archived":false,"fork":false,"pushed_at":"2024-07-08T13:05:45.000Z","size":212,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-26T07:03:52.972Z","etag":null,"topics":["docker-compose","fastapi","python","pytorch","streamlit","transformers"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivangolt.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-31T16:28:11.000Z","updated_at":"2025-06-21T20:54:23.000Z","dependencies_parsed_at":"2024-06-02T20:13:11.513Z","dependency_job_id":"c85d1635-6501-46ab-8811-4b08f6971e1f","html_url":"https://github.com/ivangolt/text_tone_service","commit_stats":null,"previous_names":["ivangolt/text_tone_service"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ivangolt/text_tone_service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangolt%2Ftext_tone_service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangolt%2Ftext_tone_service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangolt%2Ftext_tone_service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangolt%2Ftext_tone_service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivangolt","download_url":"https://codeload.github.com/ivangolt/text_tone_service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangolt%2Ftext_tone_service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31693272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker-compose","fastapi","python","pytorch","streamlit","transformers"],"created_at":"2024-11-10T01:11:13.556Z","updated_at":"2026-04-11T19:32:04.676Z","avatar_url":"https://github.com/ivangolt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Model Service Api with Streamlit frontend\n\nExample The ML service is a web application that provides an API for interacting with a machine learning model. It allows users to send queries with prediction data and get results back.\n\n**Startup logic:**\n\nWhen launched, the application initializes FastAPI, which handles HTTP requests. The app also connects to the machine learning model and loads it into memory for use in making predictions.\n\n```\n.\n├── Docker\n│   └── frontend\n|        └── Dockerfile         # Docker image for frontend app\n|   └── backend\n|         └── Dockerfile        # Docker image for backend app\n├── frontend\n|      └── tone_app.py          # Streamlit app file for frontend part of app   \n├── docker-compose.yml          # Docker container managing\n├── pyproject.toml              # Dependencies\n└── src\n    ├── app.py                  # Main app, FastAPI initializing\n    ├── api                     # Package with API routes\n    │   ├── __init__.py\n    │   └── routes              # Package with API routes\n    │       ├── __init__.py\n    │       ├── healthcheck.py  # Route to check the srvice status\n    │       ├── predict.py      # Route for model predictions\n    │       └── router.py       # Main router\n    ├── schemas                 # Package with data models\n    │   ├── __init__.py\n    │   ├── healthcheck.py      # Model for service state responses\n    │   └── requests.py         # Model for input requests to the API\n    └── services                # Package with ML model\n        ├── __init__.py\n        ├── model.py            # ML model with prediction\n        └── utils.py            # Supporting utilities\n```\n\n## Getting started with Docker Compose\n\n`docker-compose up --build`\n\nWeb-server on\n\n`http://localhost:8000`\n\nUI on\n\n`http://localhost:8000/docs`\n\nApp on \n\n`http://localhost:8501`\n\n\n## Running local\n\n`pip install --no-cache-dir poetry`\n\n`poetry install --no-dev`\n\n`poetry run uvicorn src.app:app --host localhost --port 8000`\n\nand\n\n`poetry run streamlit run frontend/tone_app.py`\n\n\n# Example of work\n\n![](docs/streamlit_service.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivangolt%2Ftext_tone_service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivangolt%2Ftext_tone_service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivangolt%2Ftext_tone_service/lists"}