File size: 1,546 Bytes
91d390a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

# 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.