Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -109,7 +109,7 @@ class UserPromptInput(BaseModel):
|
|
| 109 |
|
| 110 |
@app.post("/")
|
| 111 |
async def get_analysis(user_prompt: UserPromptInput):
|
| 112 |
-
|
| 113 |
'When faced with complex,multi-stemp problems in JEE, how likely are you to approach problem-solving systematically, breaking down each step ?':{getattr(user_prompt, 'problem_solving_approach')},
|
| 114 |
'In your JEE preparation, how likely are you to ensure thorough understanding of fundamental concepts before moving on to advanced topics ?':{getattr(user_prompt, 'thorough_understanding')},
|
| 115 |
'How likely are to integrate feedback from practice tests or teachers into your JEE preparation strategy ?':{getattr(user_prompt, 'feedback')},
|
|
@@ -122,5 +122,5 @@ async def get_analysis(user_prompt: UserPromptInput):
|
|
| 122 |
'What techniques do you use to remember JEE concepts and formulas for a long time ? eg: Flashcards, Mindmap, etc.': {getattr(user_prompt, 'study_techniques')}"""
|
| 123 |
|
| 124 |
|
| 125 |
-
output = swot_bot.query(system_prompt +
|
| 126 |
return {"message": output}
|
|
|
|
| 109 |
|
| 110 |
@app.post("/")
|
| 111 |
async def get_analysis(user_prompt: UserPromptInput):
|
| 112 |
+
user_response = f"""Confidence score of the student across different subjects out of 10 :{getattr(user_prompt, 'confidence_scores_str')},
|
| 113 |
'When faced with complex,multi-stemp problems in JEE, how likely are you to approach problem-solving systematically, breaking down each step ?':{getattr(user_prompt, 'problem_solving_approach')},
|
| 114 |
'In your JEE preparation, how likely are you to ensure thorough understanding of fundamental concepts before moving on to advanced topics ?':{getattr(user_prompt, 'thorough_understanding')},
|
| 115 |
'How likely are to integrate feedback from practice tests or teachers into your JEE preparation strategy ?':{getattr(user_prompt, 'feedback')},
|
|
|
|
| 122 |
'What techniques do you use to remember JEE concepts and formulas for a long time ? eg: Flashcards, Mindmap, etc.': {getattr(user_prompt, 'study_techniques')}"""
|
| 123 |
|
| 124 |
|
| 125 |
+
output = swot_bot.query(system_prompt + user_response)
|
| 126 |
return {"message": output}
|