Spaces:
Running
Running
# Shakespeare-GPT Space | |
This space is a demonstration of a fine-tuned GPT-2 model trained on Shakespearean text, offering users the ability to generate text inspired by the Bard's style. | |
## Features | |
- **Generate Text**: Input a prompt and let the model generate Shakespearean-style text. | |
- **Customizable Settings**: Adjust parameters like maximum length, temperature, and sampling method (e.g., top-p, top-k) for fine-tuned control over the output. | |
- **Gradio Interface**: User-friendly interface powered by Gradio for seamless interaction. | |
## How to Use | |
1. Enter a prompt in the input box. | |
2. Adjust settings (optional) for generation control. | |
3. Click the "Generate" button and wait for your text to appear. | |
## Example Prompts | |
- "Oh noble knight, what hast thou seen?" | |
- "To love or not to love, that is the query." | |
- "The moon shines brightly upon the silent woods." | |
## Technologies | |
- **Model**: GPT-2 fine-tuned on Shakespearean text. | |
- **Framework**: Gradio for the web interface. | |
- **Platform**: Hosted on Hugging Face Spaces. | |
## Requirements | |
This space uses the following dependencies (also listed in `requirements.txt`): | |
``` | |
gradio | |
transformers | |
torch | |
``` | |
## About the Model | |
The model was fine-tuned using the tinyShakespeare dataset. Its outputs are influenced by the training data, generating text that resembles Shakespearean prose and verse. | |
## Acknowledgments | |
Special thanks to Hugging Face and Gradio for providing the tools to make this project possible. | |
## License | |
This project is under the apache-2.0 license. | |