Rakshitjan commited on
Commit
e840aea
·
verified ·
1 Parent(s): 16c7115

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -322,7 +322,7 @@ 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.
@@ -387,7 +387,7 @@ 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
 
 
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.
 
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