gpt2_Sharjeel / README.md
7jimmy's picture
Upload 10 files
87b3050
|
raw
history blame
370 Bytes
# GPT-2 on Gradio
![alt text](https://github.com/gradio-app/gpt-2/blob/master/screenshots/interface.png?raw=true)
- Loads `gpt-2`, but can load `gpt2-medium`, `gpt2-large` or `gpt2-xl`.
- `max_length` set to 100 (The max length of the sequence to be generated.)
- running `".".join(output.split(".")[:-1]) + "."` so that `max_length` doesn't stop an output abruptly.