Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cursedprograms/cursed-gpt
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.
https://github.com/cursedprograms/cursed-gpt
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
Last synced: 10 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/cursedprograms/cursed-gpt
- Owner: CursedPrograms
- License: mit
- Created: 2024-01-26T16:46:50.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-18T17:56:40.000Z (10 months ago)
- Last Synced: 2024-05-12T00:16:04.755Z (7 months ago)
- 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
- Language: Python
- Homepage: https://cursedprograms.github.io/cursedgpt-pr/
- Size: 7.64 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CursedGPT
```bash
"you suck, but you're not going to do anything about it."
```
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. To improve the user experience, unnecessary warning messages related to the transformers library are effectively suppressed.## Scripts:
- **main.py:** The selection menu for CursedGPT
- **app.py:** Run CursedGPT as a web-server### /scripts/
- **transformer.py:** Run CursedGPT
- **transformer_t2s.py:** Run CursedGPT with text-to-speech functionality
- **transformer_s2t2s.py:** Run CursedGPT with speech-to-text-to-speech functionality
- **transformer_webcam.py:** Run CursedGPT with webcam functionality
- **install_dependencies.py:** Install dependencies### /scripts/system
- **generate_text.py:** The GPT text generator
- **clean_text.py:** Clean text from recorded voice audio
- **stt.py:** Speech-to-text
- **tts.py:** Text-to-speech
- **capture_photo.py:** Capture photo with a webcam
- **play_audio.py:** Play generated audio## Requirements:
```bash
transformers==4.37.1
tensorflow==2.14.0
torch==2.1.1
torchvision==0.16.1
torchaudio==2.1.1
flask==3.0.0
gtts==2.5.0
pyaudio==0.2.14
pydub==0.25.1
beautifulsoup4==4.10.0
SpeechRecognition==3.10.1
pygame==2.5.2
```
## How to Run:
```bash
pip install -r requirements.txt
```
```bash
pip install torch torchvision torchaudio
```
```bash
python main.py
```
```bash
python app.py
```
- [GloriosaAI Repository](https://github.com/CursedPrograms/GloriosaAI)
- [Gender-Age-ID Repository](https://github.com/CursedPrograms/Gender-Age-ID)
- [Detect-Face Repository](https://github.com/CursedPrograms/Detect-Face)
- [Image-Generator Repository](https://github.com/CursedPrograms/Image-Generator)