Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -12,3 +12,31 @@ short_description: This Space showcases a simple AI demo built with Gradio
|
|
| 12 |
---
|
| 13 |
|
| 14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 15 |
+
|
| 16 |
+
# Conclusion Generator Demo
|
| 17 |
+
|
| 18 |
+
This Space showcases a simple AI demo built with [Gradio](https://gradio.app/) and [Hugging Face Transformers](https://huggingface.co/transformers/).
|
| 19 |
+
|
| 20 |
+
## 🚀 What it does
|
| 21 |
+
- Takes short user input (up to 300 characters).
|
| 22 |
+
- Runs a moderation check to block toxic or inappropriate content.
|
| 23 |
+
- Generates a **short final conclusion only** — no elaboration or extra details.
|
| 24 |
+
|
| 25 |
+
## 🛡️ Safeguards
|
| 26 |
+
- Input length limited to 300 characters.
|
| 27 |
+
- Toxic or profane inputs are flagged and blocked.
|
| 28 |
+
- Output length capped at 50 tokens to prevent abuse.
|
| 29 |
+
|
| 30 |
+
## 🖥️ How to use
|
| 31 |
+
1. Type a respectful query into the textbox.
|
| 32 |
+
2. Click **Submit**.
|
| 33 |
+
3. Read the generated conclusion in the output box.
|
| 34 |
+
|
| 35 |
+
## ⚙️ Tech stack
|
| 36 |
+
- Model: [`bigscience/bloomz-560m`](https://huggingface.co/bigscience/bloomz-560m) for text generation.
|
| 37 |
+
- Moderation: [`unitary/toxic-bert`](https://huggingface.co/unitary/toxic-bert).
|
| 38 |
+
- Interface: [Gradio](https://gradio.app/).
|
| 39 |
+
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
✨ This demo is intended as a lightweight example of AI interaction. It’s not optimized for production use.
|