Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,14 +1,36 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
-
python_version: '3.13'
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
-
short_description: creating the text generation using the gpt2
|
| 12 |
---
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: GPT-2 Text Generation
|
| 3 |
+
emoji: 🤖
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 5.34.0
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# GPT-2 Text Generation Application
|
| 13 |
+
|
| 14 |
+
## Overview
|
| 15 |
+
This application generates human-like text using the pre-trained GPT-2 model from Hugging Face Transformers. Users can enter a prompt and receive AI-generated text based on the given input.
|
| 16 |
+
|
| 17 |
+
## Features
|
| 18 |
+
- Text generation using GPT-2
|
| 19 |
+
- Adjustable output length
|
| 20 |
+
- Simple and interactive Gradio interface
|
| 21 |
+
- Built with Python, PyTorch, and Transformers
|
| 22 |
+
|
| 23 |
+
## Technologies Used
|
| 24 |
+
- Python 3.x
|
| 25 |
+
- Hugging Face Transformers
|
| 26 |
+
- GPT-2 Pre-trained Model
|
| 27 |
+
- PyTorch
|
| 28 |
+
- Gradio
|
| 29 |
+
|
| 30 |
+
## How to Use
|
| 31 |
+
1. Enter a text prompt in the input box.
|
| 32 |
+
2. Select the maximum length for the generated text.
|
| 33 |
+
3. Click the submit button.
|
| 34 |
+
4. View the generated text output.
|
| 35 |
+
|
| 36 |
+
## Example Prompt
|