namberino
commited on
Commit
·
2f8b4ba
1
Parent(s):
5ee537b
Testing
Browse files- fastapi_app.py +2 -2
fastapi_app.py
CHANGED
@@ -17,11 +17,11 @@ if not os.path.exists(tmp_folder):
|
|
17 |
class GenerateRequest(BaseModel):
|
18 |
topics: List[str] = Field(..., description="List of topics for MCQ generation")
|
19 |
question_per_topic: int = Field(1, ge=1, le=10, description="Number of questions per topic")
|
20 |
-
difficulty:
|
21 |
DifficultyLevel.MEDIUM,
|
22 |
description="Difficulty level for generated questions"
|
23 |
)
|
24 |
-
qtype:
|
25 |
QuestionType.DEFINITION,
|
26 |
description="Type of question to generate"
|
27 |
)
|
|
|
17 |
class GenerateRequest(BaseModel):
|
18 |
topics: List[str] = Field(..., description="List of topics for MCQ generation")
|
19 |
question_per_topic: int = Field(1, ge=1, le=10, description="Number of questions per topic")
|
20 |
+
difficulty: str = Field(
|
21 |
DifficultyLevel.MEDIUM,
|
22 |
description="Difficulty level for generated questions"
|
23 |
)
|
24 |
+
qtype: str = Field(
|
25 |
QuestionType.DEFINITION,
|
26 |
description="Type of question to generate"
|
27 |
)
|