Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -239,8 +239,8 @@ class StudyInput(BaseModel):
|
|
| 239 |
new_topic_approach: str
|
| 240 |
old_topic_approach: str
|
| 241 |
topic_ratio: str
|
| 242 |
-
hours_of_study:
|
| 243 |
-
hours_of_study_weekends:
|
| 244 |
revision_days: str
|
| 245 |
test_days: str
|
| 246 |
physicsStartIndex: int
|
|
@@ -249,7 +249,6 @@ class StudyInput(BaseModel):
|
|
| 249 |
completed_phy_chapters: List[str]
|
| 250 |
completed_chem_chapters: List[str]
|
| 251 |
completed_maths_chapters: List[str]
|
| 252 |
-
total_time: int
|
| 253 |
|
| 254 |
# Function to remove completed chapters
|
| 255 |
def remove_completed_chapters(subject_data, completed_chapters):
|
|
@@ -284,9 +283,6 @@ async def generate_roadmap(study_input: StudyInput):
|
|
| 284 |
phy = get_data_at_index(phy, study_input.physicsStartIndex)
|
| 285 |
chem = get_data_at_index(chem, study_input.chemistryStartIndex)
|
| 286 |
maths = get_data_at_index(maths, study_input.mathematicsStartIndex)
|
| 287 |
-
print(phy)
|
| 288 |
-
print(chem)
|
| 289 |
-
print(maths)
|
| 290 |
# Prepare user persona
|
| 291 |
user_persona = f"""
|
| 292 |
You are required to generate a highly personalized roadmap for a student studying Physics, Chemistry, and Mathematics for the JEE Main exam.
|
|
|
|
| 239 |
new_topic_approach: str
|
| 240 |
old_topic_approach: str
|
| 241 |
topic_ratio: str
|
| 242 |
+
hours_of_study: str
|
| 243 |
+
hours_of_study_weekends: str
|
| 244 |
revision_days: str
|
| 245 |
test_days: str
|
| 246 |
physicsStartIndex: int
|
|
|
|
| 249 |
completed_phy_chapters: List[str]
|
| 250 |
completed_chem_chapters: List[str]
|
| 251 |
completed_maths_chapters: List[str]
|
|
|
|
| 252 |
|
| 253 |
# Function to remove completed chapters
|
| 254 |
def remove_completed_chapters(subject_data, completed_chapters):
|
|
|
|
| 283 |
phy = get_data_at_index(phy, study_input.physicsStartIndex)
|
| 284 |
chem = get_data_at_index(chem, study_input.chemistryStartIndex)
|
| 285 |
maths = get_data_at_index(maths, study_input.mathematicsStartIndex)
|
|
|
|
|
|
|
|
|
|
| 286 |
# Prepare user persona
|
| 287 |
user_persona = f"""
|
| 288 |
You are required to generate a highly personalized roadmap for a student studying Physics, Chemistry, and Mathematics for the JEE Main exam.
|