Spaces:
Sleeping
Sleeping
Download models/text_responses.py from parthnuwal7/FCT: direct link, hf CLI and curl.
- Browser
- Download file 1.42 kB
-
https://huggingface.co/spaces/parthnuwal7/FCT/resolve/main/models/text_responses.py
- Command line
-
hf download hf://spaces/parthnuwal7/FCT/models/text_responses.py
-
curl -L -o text_responses.py https://huggingface.co/spaces/parthnuwal7/FCT/resolve/main/models/text_responses.py
1.42 kB
| """Text responses model""" | |
| from typing import List, Dict | |
| from dataclasses import dataclass | |
| class TextResponses: | |
| student_id: str | |
| text_q1: str # Strengths | |
| text_q2: str # Career interests | |
| text_q3: str # Extracurriculars + leadership | |
| def to_dict(self): | |
| return { | |
| 'student_id': self.student_id, | |
| 'text_q1': self.text_q1, | |
| 'text_q2': self.text_q2, | |
| 'text_q3': self.text_q3 | |
| } | |
| def get_questions() -> List[Dict[str, str]]: | |
| """Return the 3 textual questions""" | |
| return [ | |
| { | |
| "id": "text_q1", | |
| "text": "What are your key strengths and technical skills? (150-300 words)", | |
| "placeholder": "Describe your technical skills, soft skills, and what makes you stand out..." | |
| }, | |
| { | |
| "id": "text_q2", | |
| "text": "What are your career interests and goals? (150-300 words)", | |
| "placeholder": "Describe your ideal career path, industries of interest, and long-term goals..." | |
| }, | |
| { | |
| "id": "text_q3", | |
| "text": "Describe your extracurricular activities and leadership experiences. (150-300 words)", | |
| "placeholder": "Share your involvement in clubs, projects, leadership roles, and impact..." | |
| } | |
| ] | |