Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -73,5 +73,62 @@ def create_complete_response(text: str, model: str) -> dict:
|
|
73 |
],
|
74 |
}
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
if __name__ == "__main__":
|
77 |
uvicorn.run("app:app", host="0.0.0.0", port=7860, reload=True)
|
|
|
73 |
],
|
74 |
}
|
75 |
|
76 |
+
@app.get("/in/10th")
|
77 |
+
async def get_tenth_class_data():
|
78 |
+
return {
|
79 |
+
"class": "10",
|
80 |
+
"subjects": [
|
81 |
+
{
|
82 |
+
"name": "English",
|
83 |
+
"chapters": [
|
84 |
+
{"id": "eng-1", "name": "Prose: A Letter to God", "level": "easy"},
|
85 |
+
{"id": "eng-2", "name": "Poem: Dust of Snow", "level": "medium"},
|
86 |
+
{"id": "eng-3", "name": "Prose: Nelson Mandela", "level": "hard"},
|
87 |
+
{"id": "eng-4", "name": "Poem: Fire and Ice", "level": "medium"},
|
88 |
+
{"id": "eng-5", "name": "Prose: From the Diary of Anne Frank", "level": "easy"}
|
89 |
+
]
|
90 |
+
},
|
91 |
+
{
|
92 |
+
"name": "Math",
|
93 |
+
"chapters": [
|
94 |
+
{"id": "math-1", "name": "Real Numbers", "level": "medium"},
|
95 |
+
{"id": "math-2", "name": "Polynomials", "level": "medium"},
|
96 |
+
{"id": "math-3", "name": "Pair of Linear Equations in Two Variables", "level": "hard"},
|
97 |
+
{"id": "math-4", "name": "Quadratic Equations", "level": "hard"},
|
98 |
+
{"id": "math-5", "name": "Arithmetic Progressions", "level": "easy"}
|
99 |
+
]
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"name": "Science",
|
103 |
+
"chapters": [
|
104 |
+
{"id": "sci-1", "name": "Chemical Reactions and Equations", "level": "easy"},
|
105 |
+
{"id": "sci-2", "name": "Acids, Bases and Salts", "level": "medium"},
|
106 |
+
{"id": "sci-3", "name": "Metals and Non-Metals", "level": "medium"},
|
107 |
+
{"id": "sci-4", "name": "Life Processes", "level": "hard"},
|
108 |
+
{"id": "sci-5", "name": "Electricity", "level": "medium"}
|
109 |
+
]
|
110 |
+
},
|
111 |
+
{
|
112 |
+
"name": "History",
|
113 |
+
"chapters": [
|
114 |
+
{"id": "hist-1", "name": "The Rise of Nationalism in Europe", "level": "hard"},
|
115 |
+
{"id": "hist-2", "name": "Nationalism in India", "level": "medium"},
|
116 |
+
{"id": "hist-3", "name": "The Making of a Global World", "level": "medium"},
|
117 |
+
{"id": "hist-4", "name": "The Age of Industrialization", "level": "hard"},
|
118 |
+
{"id": "hist-5", "name": "Print Culture and the Modern World", "level": "easy"}
|
119 |
+
]
|
120 |
+
},
|
121 |
+
{
|
122 |
+
"name": "Hindi",
|
123 |
+
"chapters": [
|
124 |
+
{"id": "hin-1", "name": "पाठ: पद", "level": "easy"},
|
125 |
+
{"id": "hin-2", "name": "पाठ: सूरदास", "level": "medium"},
|
126 |
+
{"id": "hin-3", "name": "पाठ: तुलसीदास", "level": "hard"},
|
127 |
+
{"id": "hin-4", "name": "पाठ: साखी", "level": "medium"},
|
128 |
+
{"id": "hin-5", "name": "पाठ: आत्मकथ्य", "level": "easy"}
|
129 |
+
]
|
130 |
+
}
|
131 |
+
]
|
132 |
+
}
|
133 |
if __name__ == "__main__":
|
134 |
uvicorn.run("app:app", host="0.0.0.0", port=7860, reload=True)
|