{"id":20805638,"url":"https://github.com/devrico003/sentiment_analysis","last_synced_at":"2026-05-26T20:05:51.323Z","repository":{"id":179251531,"uuid":"663197237","full_name":"DevRico003/sentiment_analysis","owner":"DevRico003","description":"A Streamlit app leveraging GPT-3.5-turbo for zero-shot sentiment analysis. Users input text and a list of potential emotions, the AI then classifies the text's sentiment and displays the corresponding emotion.","archived":false,"fork":false,"pushed_at":"2023-07-06T20:07:58.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-12T23:39:37.846Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevRico003.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":"2023-07-06T19:11:46.000Z","updated_at":"2024-07-18T18:49:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"2b9a6190-0ce3-4a46-b011-e0ce16a6f328","html_url":"https://github.com/DevRico003/sentiment_analysis","commit_stats":null,"previous_names":["devrico003/sentiment_analysis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DevRico003/sentiment_analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevRico003%2Fsentiment_analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevRico003%2Fsentiment_analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevRico003%2Fsentiment_analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevRico003%2Fsentiment_analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevRico003","download_url":"https://codeload.github.com/DevRico003/sentiment_analysis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevRico003%2Fsentiment_analysis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33536734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"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":[],"created_at":"2024-11-17T19:15:48.819Z","updated_at":"2026-05-26T20:05:51.314Z","avatar_url":"https://github.com/DevRico003.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zero-Shot Sentiment Analysis with GPT-3.5-turbo\n\nThis repository contains an interactive Streamlit application that utilizes OpenAI's GPT-3.5-turbo model for zero-shot sentiment analysis. Users input a piece of text, and the application classifies the sentiment based on predefined emotions, displays the results, and maintains a history of past analyses.\n\n## Features\n\n- Zero-Shot Sentiment Analysis: Using GPT-3.5-turbo, this application provides an intuitive interface for performing zero-shot sentiment analysis.\n- Sentiment History: Keeps track of all the sentiment analysis done during a session, providing a comprehensive review of the session's analysis.\n\n## Requirements\n\n- Python 3.6+\n- OpenAI API key\n- Streamlit\n- python-dotenv\n- openai\n\n## Setup\n\n1. Clone this repository to your local machine.\n2. Install the required packages:\n   ```\n   pip install -r requirements.txt\n   ```\n3. Create a `.env` file in the root directory and add your OpenAI API key:\n   ```\n   OPENAI_API_KEY=your-api-key-here\n   ```\n4. Run the Streamlit app:\n   ```\n   streamlit run sentiment_analysis.py\n   ```\n\n## Usage\n\n1. Launch the application and input the text you want to analyze in the provided text area.\n2. Click 'Check!' and the application will classify the sentiment of the text based on predefined emotions.\n3. The result is displayed below the 'Check!' button, and the history is maintained in the 'History' text area.\n\n## Example sentiments\n\n![Example of Sentiment](image.png)\n\n## Example True or false\n\n![Example of True or False](image2.png)\n\n## Contributing\n\nContributions to this project are welcome! Please feel free to open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the terms of the MIT license. For more information, please see the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevrico003%2Fsentiment_analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevrico003%2Fsentiment_analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevrico003%2Fsentiment_analysis/lists"}