DemahAlmutairi commited on
Commit
a614560
·
verified ·
1 Parent(s): dd00333

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +30 -1
README.md CHANGED
@@ -9,4 +9,33 @@ app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  pinned: false
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
13
+ # AI Kids' Story Generator - English & Arabic
14
+
15
+ ## Project Objectives
16
+ The AI Kids' Story Generator aims to create engaging and imaginative short stories for children. Users can input a character name and a setting, and the model will generate a fun story in either English or Arabic. This project leverages advanced natural language processing techniques to provide a creative tool for storytelling.
17
+
18
+ ## Implemented Pipelines
19
+ The project uses the following pipelines from the `transformers` library:
20
+
21
+ 1. **Text Generation Pipeline**:
22
+ - **Model**: The model adapts based on the selected language. For English, it uses the `microsoft/Phi-3-mini-4k-instruct` model, while for Arabic, it employs the `ALLaM-AI/ALLaM-7B-Instruct-preview` model.
23
+
24
+ ## Instructions for Using the Interface
25
+ 1. **Input Fields**:
26
+ - **Character Name**: Enter a name for the story's main character.
27
+ - **Setting**: Specify the story's setting (e.g., a magical forest).
28
+ - **Choose Language**: Select the desired language for the story (English or Arabic).
29
+
30
+ 2. **Generate Story**: Click the "Submit" button to generate the story. The output will be displayed in the "Kids' Story" textbox.
31
+
32
+ 3. **Examples**: The interface includes examples you can use to see how the app functions. Simply click on an example to populate the fields.
33
+
34
+ ## Justifications for Model and Pipeline Choices
35
+ - **Model Selection**: The chosen models are specifically designed for instruction-following tasks, making them suitable for generating narratives. The English model (`microsoft/Phi-3-mini-4k-instruct`) has been optimized for various textual tasks, while the Arabic model (`ALLaM-AI/ALLaM-7B-Instruct-preview`) is tailored for Arabic language generation.
36
+ - **Pipeline Configuration**: The parameters for the text generation pipeline were chosen to encourage creativity and engagement, essential for children's stories.
37
+
38
+ ## Bilingual Implementation
39
+ The project supports both English and Arabic languages, allowing users to receive stories in their preferred language.
40
+
41
+ ---