File size: 1,304 Bytes
21947d7
 
 
 
 
 
 
 
7886853
 
 
 
 
 
21947d7
2786774
6c12862
 
 
 
 
 
 
 
 
 
009283f
6c12862
 
 
 
 
 
 
 
 
 
d7f4720
 
 
 
 
 
 
6c12862
 
 
 
 
009283f
 
6c12862
 
 
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
52
53
54
---
title: Tiny Story Generator
emoji: 📖
colorFrom: pink
colorTo: purple
sdk: gradio
app_file: app.py
pinned: false
tags:
- gpt2
- text-generation
- creative-writing
- story-generation
- TinyStories
---

# ✨ Tiny Story Generator

Generate short, creative stories from your own prompts using a fine-tuned GPT-2 model trained on the **TinyStories** dataset.

---

## 🧠 About
This model was fine-tuned on [roneneldan/TinyStories](https://huggingface.co/datasets/roneneldan/TinyStories), a dataset of simple and imaginative children’s stories.  
It uses a smaller GPT-2 architecture optimized for lightweight, fun text generation.

---

## 🚀 How to Use
Just type a prompt and press “Generate Story”!  
Examples:
- “Once upon a time, in a tiny forest…”
- “A little robot who wanted to learn how to sing…”
- “Far away on a small planet…”

---

### ✍️ Try these prompts
- A curious dragon learns to paint  
- The tiny robot who wanted to dream  
- The moon that forgot how to shine
  
---

## 💡 Model
Model: [Fathi7ma/tiny-stories-gpt2](https://huggingface.co/Fathi7ma/tiny-stories-gpt2)  
Framework: `transformers` + `gradio`  
Language: English

---

## ❤️ Author
Created by [Fathi7ma](https://huggingface.co/Fathi7ma)  
Built with Hugging Face Spaces and Gradio.