{"id":22812311,"url":"https://github.com/cursedprograms/cursed-gpt","last_synced_at":"2025-04-22T16:02:55.258Z","repository":{"id":219317511,"uuid":"748735255","full_name":"CursedPrograms/Cursed-GPT","owner":"CursedPrograms","description":"CursedGPT leverages the Hugging Face Transformers library to interact with a pre-trained GPT-2 model. It employs TensorFlow for model management and AutoTokenizer for efficient tokenization. The script enables users to input prompts interactively, generating text responses from the GPT-2 model. ","archived":false,"fork":false,"pushed_at":"2025-04-14T20:53:24.000Z","size":8013,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T21:48:28.625Z","etag":null,"topics":["ai","ai-chatbot","chat","chatbot","css","flask","gpt","gpt-2","html","huggingface","pretrained-transformers","python","speech-to-text","talking","text","text-generation","text-to-speech","transformer","transformers","webcam"],"latest_commit_sha":null,"homepage":"https://cursedprograms.github.io/cursedgpt-pr/","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/CursedPrograms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"custom":["buymeacoffee.com/cursedentertainment","ko-fi.com/cursedentertainment"]}},"created_at":"2024-01-26T16:46:50.000Z","updated_at":"2025-04-14T20:53:29.000Z","dependencies_parsed_at":"2025-04-14T21:56:51.686Z","dependency_job_id":null,"html_url":"https://github.com/CursedPrograms/Cursed-GPT","commit_stats":null,"previous_names":["cursedprograms/gpt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CursedPrograms%2FCursed-GPT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CursedPrograms%2FCursed-GPT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CursedPrograms%2FCursed-GPT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CursedPrograms%2FCursed-GPT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CursedPrograms","download_url":"https://codeload.github.com/CursedPrograms/Cursed-GPT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250275400,"owners_count":21403675,"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":["ai","ai-chatbot","chat","chatbot","css","flask","gpt","gpt-2","html","huggingface","pretrained-transformers","python","speech-to-text","talking","text","text-generation","text-to-speech","transformer","transformers","webcam"],"created_at":"2024-12-12T12:11:50.641Z","updated_at":"2025-04-22T16:02:55.184Z","avatar_url":"https://github.com/CursedPrograms.png","language":"Python","funding_links":["buymeacoffee.com/cursedentertainment","ko-fi.com/cursedentertainment"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"Python\" src=\"https://img.shields.io/badge/python%20-%23323330.svg?\u0026style=for-the-badge\u0026logo=python\u0026logoColor=white\"/\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg alt=\"TensorFlow\" src=\"https://img.shields.io/badge/tensorflow%20-%23323330.svg?\u0026style=for-the-badge\u0026logo=tensorflow\u0026logoColor=white\"/\u003e\n    \u003cimg alt=\"Flask\" src=\"https://img.shields.io/badge/flask%20-%23323330.svg?\u0026style=for-the-badge\u0026logo=flask\u0026logoColor=white\"/\u003e\n\u003c/div\u003e\n\n# CursedGPT\n\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://cursedprograms.github.io/cursedgpt-pr/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://github.com/CursedPrograms/Cursed-GPT/raw/main/demo_images/cover.png\"\n        alt=\"CursedGPT\"\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n```bash\n\"you suck, but you're not going to do anything about it.\"\n```\nCursedGPT leverages the Hugging Face Transformers library to interact with a pre-trained GPT-2 model. It employs TensorFlow for model management and AutoTokenizer for efficient tokenization. The script enables users to input prompts interactively, generating text responses from the GPT-2 model. To improve the user experience, unnecessary warning messages related to the transformers library are effectively suppressed.\n\n## Scripts:\n\n- **main.py:** The selection menu for CursedGPT\n- **app.py:** Run CursedGPT as a web-server\n\n### /scripts/\n\n- **transformer.py:** Run CursedGPT\n- **transformer_t2s.py:** Run CursedGPT with text-to-speech functionality\n- **transformer_s2t2s.py:** Run CursedGPT with speech-to-text-to-speech functionality\n- **transformer_webcam.py:** Run CursedGPT with webcam functionality\n- **install_dependencies.py:** Install dependencies\n\n### /scripts/system\n\n- **generate_text.py:** The GPT text generator\n- **clean_text.py:** Clean text from recorded voice audio\n- **stt.py:** Speech-to-text\n- **tts.py:** Text-to-speech\n- **capture_photo.py:** Capture photo with a webcam\n- **play_audio.py:** Play generated audio\n\n## Requirements:\n\n```bash\ntransformers==4.37.1\ntensorflow==2.14.0\ntorch==2.1.1\ntorchvision==0.16.1\ntorchaudio==2.1.1\nflask==3.0.0\ngtts==2.5.0\npyaudio==0.2.14 \npydub==0.25.1\nbeautifulsoup4==4.10.0\nSpeechRecognition==3.10.1\npygame==2.5.2\n```\n## How to Run:\n```bash\npip install -r requirements.txt\n```\n```bash\npip install torch torchvision torchaudio\n```\n```bash\npython main.py\n```\n```bash\npython app.py\n```\n\u003cbr\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://synthwomb-synthia.onrender.com/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://github.com/SynthWomb/Synthia/raw/main/demo_images/synthia00-cover.png\"\n        alt=\"SynthiaGPT\"\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n- [GloriosaAI Repository](https://github.com/CursedPrograms/GloriosaAI)\n- [Gender-Age-ID Repository](https://github.com/CursedPrograms/Gender-Age-ID)\n- [Detect-Face Repository](https://github.com/CursedPrograms/Detect-Face)\n- [Image-Generator Repository](https://github.com/CursedPrograms/Image-Generator)\n\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://github.com/SynthWomb\" target=\"_blank\" align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/SynthWomb/synth.womb/blob/main/logos/synthwomb07.png\"\n        alt=\"SynthWomb\" style=\"width:200px;\"/\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://cursed-entertainment.itch.io/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://github.com/CursedPrograms/cursedentertainment/raw/main/images/logos/logo-wide-grey.png\"\n        alt=\"CursedEntertainment Logo\" style=\"width:250px;\"\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcursedprograms%2Fcursed-gpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcursedprograms%2Fcursed-gpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcursedprograms%2Fcursed-gpt/lists"}