Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -123,15 +123,17 @@ async def generate_roadmap(input_data: RoadmapInput):
|
|
| 123 |
physics_topics = get_topics_within_timeframe(phy, input_data.total_time, input_data.startphyRoadmapFrom)
|
| 124 |
chemistry_topics = get_topics_within_timeframe(chem, input_data.total_time, input_data.startchemRoadmapFrom)
|
| 125 |
mathematics_topics = get_topics_within_timeframe(maths, input_data.total_time, input_data.startmathRoadmapFrom)
|
| 126 |
-
|
| 127 |
-
print(chemistry_topics)
|
| 128 |
-
print(mathematics_topics)
|
| 129 |
for topic in reversed(input_data.userleft_topic_phy):
|
| 130 |
physics_topics.insert(0, topic)
|
| 131 |
for topic in reversed(input_data.userleft_topic_chem):
|
| 132 |
chemistry_topics.insert(0, topic)
|
| 133 |
for topic in reversed(input_data.userleft_topic_maths):
|
| 134 |
mathematics_topics.insert(0, topic)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
|
| 136 |
# User persona string
|
| 137 |
userPersona = f"""
|
|
|
|
| 123 |
physics_topics = get_topics_within_timeframe(phy, input_data.total_time, input_data.startphyRoadmapFrom)
|
| 124 |
chemistry_topics = get_topics_within_timeframe(chem, input_data.total_time, input_data.startchemRoadmapFrom)
|
| 125 |
mathematics_topics = get_topics_within_timeframe(maths, input_data.total_time, input_data.startmathRoadmapFrom)
|
| 126 |
+
|
|
|
|
|
|
|
| 127 |
for topic in reversed(input_data.userleft_topic_phy):
|
| 128 |
physics_topics.insert(0, topic)
|
| 129 |
for topic in reversed(input_data.userleft_topic_chem):
|
| 130 |
chemistry_topics.insert(0, topic)
|
| 131 |
for topic in reversed(input_data.userleft_topic_maths):
|
| 132 |
mathematics_topics.insert(0, topic)
|
| 133 |
+
|
| 134 |
+
print(physics_topics)
|
| 135 |
+
print(chemistry_topics)
|
| 136 |
+
print(mathematics_topics)
|
| 137 |
|
| 138 |
# User persona string
|
| 139 |
userPersona = f"""
|