{"id":15063728,"url":"https://github.com/semihdervis/cat-emotion-classifier","last_synced_at":"2026-01-02T12:53:56.748Z","repository":{"id":256880609,"uuid":"856707106","full_name":"semihdervis/cat-emotion-classifier","owner":"semihdervis","description":"Streamlit application that classifies the emotions of cats from uploaded images.","archived":false,"fork":false,"pushed_at":"2024-09-13T14:54:39.000Z","size":491,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T08:37:35.793Z","etag":null,"topics":["emotion-classification","streamlit","vision-transformer"],"latest_commit_sha":null,"homepage":"https://cat-emotion-classifier.streamlit.app/","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/semihdervis.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-09-13T03:50:28.000Z","updated_at":"2024-10-17T17:18:12.000Z","dependencies_parsed_at":"2024-09-13T15:58:20.065Z","dependency_job_id":"c82af598-c71f-4fb9-90ce-29d1253a192f","html_url":"https://github.com/semihdervis/cat-emotion-classifier","commit_stats":null,"previous_names":["semihdervis/cat-emotion-classifier"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semihdervis%2Fcat-emotion-classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semihdervis%2Fcat-emotion-classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semihdervis%2Fcat-emotion-classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semihdervis%2Fcat-emotion-classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semihdervis","download_url":"https://codeload.github.com/semihdervis/cat-emotion-classifier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243779078,"owners_count":20346656,"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":["emotion-classification","streamlit","vision-transformer"],"created_at":"2024-09-25T00:06:36.242Z","updated_at":"2026-01-02T12:53:56.702Z","avatar_url":"https://github.com/semihdervis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cat Emotion Classifier\n\nThis is a Streamlit application that classifies the emotions of cats from uploaded images using a Vision Transformer (ViT) model.\n\nYou can try the application [here](https://cat-emotion-classifier.streamlit.app/).\n\n## Examples\n\n\u003cimg src=\"assets/images/angry_cat_ss.png\" alt=\"Angry Cat\" width=\"700\"/\u003e\n\n\u003cimg src=\"assets/images/scared_cat_ss.png\" alt=\"Scared Cat\" width=\"700\"/\u003e\n\n\u003cimg src=\"assets/images/surprised_cat_ss.png\" alt=\"Surprised Cat\" width=\"700\"/\u003e\n\n## Features\n\n- Upload an image of a cat and classify its emotion.\n- Display the uploaded image.\n- Show the classification results as a horizontal bar chart with confidence scores for each class.\n\n## Installation\n\n1. Clone the repository:\n\n    ```sh\n    git clone https://github.com/semihdervis/cat-emotion-classifier.git\n    cd cat-emotion-classifier\n    ```\n\n2. Create a virtual environment and activate it:\n\n    ```sh\n    python -m venv venv\n    source venv/bin/activate  # On Windows, use `venv\\Scripts\\activate`\n    ```\n\n3. Install the required dependencies:\n\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n## Usage\n\n1. Run the Streamlit app:\n\n    ```sh\n    streamlit run app.py\n    ```\n\n2. Open your web browser and go to `http://localhost:8501`.\n\n3. Upload an image of a cat and click the \"Classify Image\" button to see the classification results.\n\n    **Note:** The first prediction may take some time as the Vision Transformer (ViT) model needs to be loaded from Hugging Face.\n\n## Model\n\nThe application uses a Vision Transformer (ViT) model fine-tuned for cat emotion classification, available on Hugging Face as [`semih-dervis/cat-emotion-classifier`](https://huggingface.co/semihdervis/cat-emotion-classifier).\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemihdervis%2Fcat-emotion-classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemihdervis%2Fcat-emotion-classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemihdervis%2Fcat-emotion-classifier/lists"}