File size: 995 Bytes
f47b4c5
9bb26b6
93bcad2
 
 
 
 
 
 
 
9bb26b6
f47b4c5
93bcad2
b7683e4
 
9bb26b6
b7683e4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: GPT2 Text Generator
emoji: 🔥
colorFrom: blue
colorTo: yellow
sdk: gradio
sdk_version: 5.12.0
app_file: app.py
pinned: false
license: apache-2.0
short_description: GPT2 Text generator from the prompt provided.
---

# Shakespeare Text Generator

This is a Shakespeare-style text generator trained on Shakespeare's works. The model is based on the GPT 2 architecture and generates text in the style of Shakespeare's writings.

## How to Use

1. Enter a prompt in the text box
2. Adjust the generation parameters if desired:
   - Max Length: Controls the maximum length of generated text
   - Temperature: Controls randomness (higher = more random)
   - Top K: Controls diversity of word choices
3. Click "Submit" to generate text

## Examples

Try some of the example prompts provided below the interface!

## Model Details

This model is a small GPT model trained on Shakespeare's texts. It uses the following architecture:
- 12 layers
- 768 embedding dimension
- 12 attention heads