{"id":23711979,"url":"https://github.com/thaiebu/emotion_tracker_using_llama","last_synced_at":"2026-02-08T02:30:20.847Z","repository":{"id":269298222,"uuid":"906989410","full_name":"Thaiebu/Emotion_tracker_using_llama","owner":"Thaiebu","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-25T16:01:54.000Z","size":1434,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-30T19:54:34.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Thaiebu.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-12-22T14:03:59.000Z","updated_at":"2024-12-25T16:01:57.000Z","dependencies_parsed_at":"2024-12-22T15:21:21.086Z","dependency_job_id":"a03bdcf8-0205-487e-b64a-1582a7cccd48","html_url":"https://github.com/Thaiebu/Emotion_tracker_using_llama","commit_stats":null,"previous_names":["thaiebu/emotion_tracker_using_llama"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thaiebu%2FEmotion_tracker_using_llama","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thaiebu%2FEmotion_tracker_using_llama/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thaiebu%2FEmotion_tracker_using_llama/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thaiebu%2FEmotion_tracker_using_llama/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thaiebu","download_url":"https://codeload.github.com/Thaiebu/Emotion_tracker_using_llama/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239800432,"owners_count":19699122,"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-30T19:54:49.464Z","updated_at":"2026-02-08T02:30:20.796Z","avatar_url":"https://github.com/Thaiebu.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## API Documentation\n\n1. This application provides endpoints for visualizing mood and activity trends, user profile insights, and AI-based recommendations.  \n2. The root endpoint serves an interactive dashboard in HTML format.  \n3. Users can view mood distribution, activity time, and mood patterns for specific profiles.  \n4. It includes a POST endpoint to predict mood based on user activity with optional language input.  \n5. Comprehensive schema validation ensures robust error handling and structured JSON responses.  \n\n\n\n\n1. **`/` Endpoint**: Serves the dashboard.  \n   - **Input**: None.  \n   - **Output**: HTML content.  \n\n2. **`/visualize-mood-distribution`**: Displays a mood distribution pie chart.  \n   - **Input**: None.  \n   - **Output**: JSON containing a base64-encoded image of the chart.  \n\n3. **`/visualize-activity-time`**: Shows activity time distribution as a histogram.  \n   - **Input**: None.  \n   - **Output**: JSON containing a base64-encoded histogram image.  \n\n4. **`/display-ai-recommendations`**: Provides AI-generated activity recommendations.  \n   - **Input**: None.  \n   - **Output**: JSON array with user recommendations.  \n\n5. **`/view-user-profile/{user_id}`**: Displays user profile and mood trends.  \n   - **Input**: User ID (path parameter).  \n   - **Output**: JSON with mood counts, user details, and a mood trend image.  \n\n6. **`/predict_mood`**: Predicts mood based on activity.  \n   - **Input**: JSON with activity, user name, and optional language.  \n   - **Output**: JSON with predicted mood and recommendation.  \n\n7. **Schemas**:  \n   - **`MoodRequest`**: Requires `activity` and `user_name`, optionally includes `language`.  \n   - **`MoodResponse`**: Includes `mood` and `recommendation`.  \n\n8. **Validation**: Handles input errors using `HTTPValidationError`.  \n\n9. **Content Types**: Primarily JSON responses, except for the dashboard, which returns HTML.  \n\n10. **Error Handling**: Ensures HTTP 422 for validation issues and HTTP 500 for server errors.\n\nHome page\n\n![alt text](backend/image_1.png)\n\nFast API Docs Page\n\n![alt text](backend/image.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthaiebu%2Femotion_tracker_using_llama","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthaiebu%2Femotion_tracker_using_llama","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthaiebu%2Femotion_tracker_using_llama/lists"}