Download schemas/inputs_schema.py from aliroya32/ContiAI: direct link, hf CLI and curl.
- Browser
- Download file 1.56 kB
-
https://huggingface.co/spaces/aliroya32/ContiAI/resolve/main/schemas/inputs_schema.py
- Command line
-
hf download hf://spaces/aliroya32/ContiAI/schemas/inputs_schema.py
-
curl -L -o inputs_schema.py https://huggingface.co/spaces/aliroya32/ContiAI/resolve/main/schemas/inputs_schema.py
1.56 kB
| from pydantic import BaseModel | |
| from typing import Optional | |
| # Step 1️⃣: Create a Pydantic model for inputs | |
| class OutlineInput(BaseModel): | |
| topic: str | |
| domain: str | |
| content_type: str | |
| audience: str | |
| material_type: list | |
| units_number: int | |
| note: Optional[str] = None | |
| # { | |
| # "topic": "إدارة الوقت", | |
| # "domain": "Management", | |
| # "content_type": "Educational", | |
| # "audience": "kids", | |
| # "material_type": ["Procedural", "Realistic", "Personal"], | |
| # } | |
| # { | |
| # "topic": "(Design thinking) تقنيات التفكير التصميمي لحل المشكلات واتخاذ القرارات", | |
| # "domain": "Management", | |
| # "content_type": "تدريبي", | |
| # "audience": "القادة والموظفون والإداريون", | |
| # "material_type": ["مفاهمية", "هيكلية", "شخصية", "واقعية", "اجرائية"], | |
| # } | |
| # { | |
| # "topic": "ريادة الأعمال", | |
| # "domain": "Management, Business", | |
| # "content_type": "Awareness, Training", | |
| # "audience": "CEOs, Directors, Entrepreneurs", | |
| # "material_type": ["مفاهمية", "هيكلية", "اجرائية", "واقعية"], | |
| # "units_number": 2, | |
| # } | |
| # TOPIC = "استراتيجية التدريس" | |
| # { | |
| # "topic": "استراتيجية التدريس", | |
| # "domain": "Education, Management", | |
| # "content_type": "Educational, Training - Skill development with practice", | |
| # "audience": "Teachers", | |
| # "material_type": ["مفاهمية", "هيكلية", "اجرائية", "واقعية"], | |
| # "units_number": 2, | |
| # } | |