Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
"""
|
| 2 |
-
Qwen3 Text Generation App for Hugging Face Spaces
|
| 3 |
|
| 4 |
-
This app allows you to generate text using a trained Qwen3 model.
|
| 5 |
You can control:
|
| 6 |
- The starting text (prompt)
|
| 7 |
- How many new words to generate (max_new_tokens)
|
|
@@ -175,14 +175,14 @@ def generate_text_interface(prompt, max_new_tokens, temperature):
|
|
| 175 |
|
| 176 |
# Create the Gradio interface
|
| 177 |
# This defines what the web app looks like and how it behaves
|
| 178 |
-
with gr.Blocks(title="Qwen3 Text Generator", theme=gr.themes.Soft()) as demo:
|
| 179 |
|
| 180 |
# Header
|
| 181 |
gr.Markdown(
|
| 182 |
"""
|
| 183 |
-
# 🤖 Qwen3 Text Generator
|
| 184 |
|
| 185 |
-
Generate creative stories and text using a Qwen3 model trained on TinyStories!
|
| 186 |
|
| 187 |
### How to use:
|
| 188 |
1. **Enter your starting text** (e.g., "Once upon a time")
|
|
@@ -263,7 +263,7 @@ with gr.Blocks(title="Qwen3 Text Generator", theme=gr.themes.Soft()) as demo:
|
|
| 263 |
---
|
| 264 |
### 📊 About This Model
|
| 265 |
|
| 266 |
-
- **Model**: Qwen3
|
| 267 |
- **Training Data**: TinyStories dataset (children's stories)
|
| 268 |
- **Architecture**: 28 transformer layers with Grouped Query Attention
|
| 269 |
- **Model Source**: [vuminhtue/qwen3_sentiment_tinystories](https://huggingface.co/vuminhtue/qwen3_sentiment_tinystories)
|
|
@@ -288,7 +288,7 @@ with gr.Blocks(title="Qwen3 Text Generator", theme=gr.themes.Soft()) as demo:
|
|
| 288 |
- Children's vocabulary and themes
|
| 289 |
|
| 290 |
---
|
| 291 |
-
*Built with Qwen3 architecture • Trained on TinyStories • Powered by PyTorch • Model hosted on 🤗 HuggingFace*
|
| 292 |
"""
|
| 293 |
)
|
| 294 |
|
|
|
|
| 1 |
"""
|
| 2 |
+
Qwen3:0.6B Text Generation App for Hugging Face Spaces
|
| 3 |
|
| 4 |
+
This app allows you to generate text using a trained Qwen3:0.6B model with TinyStories dataset .
|
| 5 |
You can control:
|
| 6 |
- The starting text (prompt)
|
| 7 |
- How many new words to generate (max_new_tokens)
|
|
|
|
| 175 |
|
| 176 |
# Create the Gradio interface
|
| 177 |
# This defines what the web app looks like and how it behaves
|
| 178 |
+
with gr.Blocks(title="Qwen3:0.6B Text Generator", theme=gr.themes.Soft()) as demo:
|
| 179 |
|
| 180 |
# Header
|
| 181 |
gr.Markdown(
|
| 182 |
"""
|
| 183 |
+
# 🤖 Qwen3:0.6B Text Generator
|
| 184 |
|
| 185 |
+
Generate creative stories and text using a Qwen3:0.6B model trained on TinyStories!
|
| 186 |
|
| 187 |
### How to use:
|
| 188 |
1. **Enter your starting text** (e.g., "Once upon a time")
|
|
|
|
| 263 |
---
|
| 264 |
### 📊 About This Model
|
| 265 |
|
| 266 |
+
- **Model**: Qwen3:0.6B (596M parameters)
|
| 267 |
- **Training Data**: TinyStories dataset (children's stories)
|
| 268 |
- **Architecture**: 28 transformer layers with Grouped Query Attention
|
| 269 |
- **Model Source**: [vuminhtue/qwen3_sentiment_tinystories](https://huggingface.co/vuminhtue/qwen3_sentiment_tinystories)
|
|
|
|
| 288 |
- Children's vocabulary and themes
|
| 289 |
|
| 290 |
---
|
| 291 |
+
*Built with Qwen3:0.6B architecture • Trained on TinyStories • Powered by PyTorch • Model hosted on 🤗 HuggingFace*
|
| 292 |
"""
|
| 293 |
)
|
| 294 |
|