Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -322,9 +322,9 @@ async def analyze_scores(input_data: ScoreInput):
|
|
| 322 |
],
|
| 323 |
model="llama3-70b-8192",
|
| 324 |
)
|
| 325 |
-
outputSOCAv2= chat_completion2.choices[0].message.content
|
| 326 |
except Exception as e:
|
| 327 |
raise HTTPException(status_code=500, detail=f"Error calling Groq API: {str(e)}")
|
|
|
|
| 328 |
system_promptMerge = f""" ROLE 1 : You are an advanced language model trained to analyze student responses from a questionnaire on Academic, Cognitive, and Study Profile aspects related to JEE Mains preparation. Your task is to generate a personalized SCO (Strengths, Challenges, Opportunities) analysis and an Action Plan section based on the user's inputs.
|
| 329 |
Questionnaire Structure:
|
| 330 |
Academic Profile:
|
|
@@ -387,9 +387,9 @@ async def analyze_scores(input_data: ScoreInput):
|
|
| 387 |
],
|
| 388 |
model="llama3-70b-8192",
|
| 389 |
)
|
| 390 |
-
outputSOCAv3= chat_completion3.choices[0].message.content
|
| 391 |
except Exception as e:
|
| 392 |
raise HTTPException(status_code=500, detail=f"Error calling Groq API: {str(e)}")
|
|
|
|
| 393 |
|
| 394 |
return {"analysis": outputSOCAv3}
|
| 395 |
|
|
|
|
| 322 |
],
|
| 323 |
model="llama3-70b-8192",
|
| 324 |
)
|
|
|
|
| 325 |
except Exception as e:
|
| 326 |
raise HTTPException(status_code=500, detail=f"Error calling Groq API: {str(e)}")
|
| 327 |
+
outputSOCAv2= chat_completion2.choices[0].message.content
|
| 328 |
system_promptMerge = f""" ROLE 1 : You are an advanced language model trained to analyze student responses from a questionnaire on Academic, Cognitive, and Study Profile aspects related to JEE Mains preparation. Your task is to generate a personalized SCO (Strengths, Challenges, Opportunities) analysis and an Action Plan section based on the user's inputs.
|
| 329 |
Questionnaire Structure:
|
| 330 |
Academic Profile:
|
|
|
|
| 387 |
],
|
| 388 |
model="llama3-70b-8192",
|
| 389 |
)
|
|
|
|
| 390 |
except Exception as e:
|
| 391 |
raise HTTPException(status_code=500, detail=f"Error calling Groq API: {str(e)}")
|
| 392 |
+
outputSOCAv3= chat_completion3.choices[0].message.content
|
| 393 |
|
| 394 |
return {"analysis": outputSOCAv3}
|
| 395 |
|