Spaces:
Running
Running
Update prompts.py
Browse files- prompts.py +3 -3
prompts.py
CHANGED
@@ -65,9 +65,9 @@ def get_story_length_instructions(length: StoryLength) -> Dict[str, Any]:
|
|
65 |
الحصول على تعليمات طول القصة وعدد الفقرات
|
66 |
"""
|
67 |
length_mapping = {
|
68 |
-
StoryLength.SHORT: {"paragraphs": 5, "description": "قصة قصيرة تتكون من
|
69 |
-
StoryLength.MEDIUM: {"paragraphs": 7, "description": "قصة متوسطة الطول تتكون من
|
70 |
-
StoryLength.LONG: {"paragraphs": 9, "description": "قصة طويلة تتكون من
|
71 |
}
|
72 |
|
73 |
return length_mapping.get(length, length_mapping[StoryLength.MEDIUM])
|
|
|
65 |
الحصول على تعليمات طول القصة وعدد الفقرات
|
66 |
"""
|
67 |
length_mapping = {
|
68 |
+
StoryLength.SHORT: {"paragraphs": 5, "description": "قصة قصيرة تتكون من 5 فقرات"},
|
69 |
+
StoryLength.MEDIUM: {"paragraphs": 7, "description": "قصة متوسطة الطول تتكون من 7 فقرات"},
|
70 |
+
StoryLength.LONG: {"paragraphs": 9, "description": "قصة طويلة تتكون من 9 فقرات"}
|
71 |
}
|
72 |
|
73 |
return length_mapping.get(length, length_mapping[StoryLength.MEDIUM])
|