--- title: AI Demo emoji: 🐨 colorFrom: blue colorTo: pink sdk: gradio sdk_version: 5.49.1 app_file: app.py pinned: false license: mit short_description: This Space showcases a simple AI demo built with Gradio --- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference # Conclusion Generator Demo This Space showcases a simple AI demo built with [Gradio](https://gradio.app/) and [Hugging Face Transformers](https://huggingface.co/transformers/). ## πŸš€ What it does - Takes short user input (up to 300 characters). - Runs a moderation check to block toxic or inappropriate content. - Generates a **short final conclusion only** β€” no elaboration or extra details. ## πŸ›‘οΈ Safeguards - Input length limited to 300 characters. - Toxic or profane inputs are flagged and blocked. - Output length capped at 50 tokens to prevent abuse. ## πŸ–₯️ How to use 1. Type a respectful query into the textbox. 2. Click **Submit**. 3. Read the generated conclusion in the output box. ## βš™οΈ Tech stack - Model: [`bigscience/bloomz-560m`](https://huggingface.co/bigscience/bloomz-560m) for text generation. - Moderation: [`unitary/toxic-bert`](https://huggingface.co/unitary/toxic-bert). - Interface: [Gradio](https://gradio.app/). --- ✨ This demo is intended as a lightweight example of AI interaction. It’s not optimized for production use.