Spaces:
Runtime error
Runtime error
File size: 2,260 Bytes
5981a38 ae83bce 5981a38 a614560 8badcc6 a614560 8badcc6 a614560 8badcc6 a614560 8badcc6 a614560 8badcc6 a614560 8badcc6 a614560 8badcc6 a614560 8badcc6 a614560 90b7746 a614560 90b7746 |
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 |
---
title: Story
emoji: π
colorFrom: yellow
colorTo: red
sdk: gradio
sdk_version: 5.18.0
app_file: app.py
pinned: false
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Here's a README template for your Gradio Space project that you can modify as needed:
---
# AI Kids' Story Generator - English & Arabic π
## Project Objectives
The objective of this project is to create a bilingual AI-powered story generator that produces engaging short stories for children in both English and Arabic. Users can input a character and a setting, and the AI will generate a fun, age-appropriate story.
## Description of Implemented Pipelines
The project utilizes two main pipelines:
1. **Text Generation Pipeline**: This is based on the Hugging Face Transformers library, utilizing models suitable for English and Arabic text generation:
- **English**: `microsoft/Phi-3-mini-4k-instruct`
- **Arabic**: `ALLaM-AI/ALLaM-7B-Instruct-preview`
2. **Arabic Tashkeel Pipeline**: The project employs the `MohamedRashad/arabic-auto-tashkeel` API to add diacritics (tashkeel) to Arabic text, enhancing readability for children.
## Instructions for Using the Interface
1. **Input Fields**:
- **Character Name**: Enter a name for the character (e.g., "Benny the Bunny").
- **Setting**: Specify the setting for the adventure (e.g., "a magical forest").
- **Choose Language**: Select either "English" or "Arabic" from the dropdown menu.
2. **Generate Story**: Click the "Submit" button to generate the story.
3. **Output**: The generated story will appear in the output textbox.
## Justifications for Model and Pipeline Choices
- **Model Selection**: The chosen models are specifically fine-tuned for text generation tasks, making them suitable for crafting creative narratives. The English model is lightweight yet effective, while the Arabic model is designed to handle intricate language features.
- **Pipeline Selection**: The use of the Arabic tashkeel API addresses the specific needs of Arabic-speaking children, ensuring that the generated stories are accessible and easy to read.
## Bilingual Implementation
The project supports both English and Arabic, allowing for a diverse user base.
--- |