Spaces:
Paused
Paused
Commit
·
562ec01
1
Parent(s):
44441db
upadtee
Browse files
backend/services/interview_engine.py
CHANGED
|
@@ -41,7 +41,7 @@ def generate_first_question(profile, job):
|
|
| 41 |
Keep it concise and clear.
|
| 42 |
"""
|
| 43 |
|
| 44 |
-
response = groq_llm.
|
| 45 |
return response.strip()
|
| 46 |
except Exception as e:
|
| 47 |
logging.error(f"Error generating first question: {e}")
|
|
@@ -134,7 +134,7 @@ def evaluate_answer(question, answer, ref_answer, job_role, seniority):
|
|
| 134 |
}}
|
| 135 |
"""
|
| 136 |
|
| 137 |
-
response = groq_llm.
|
| 138 |
# Extract JSON from response
|
| 139 |
start_idx = response.find("{")
|
| 140 |
end_idx = response.rfind("}") + 1
|
|
|
|
| 41 |
Keep it concise and clear.
|
| 42 |
"""
|
| 43 |
|
| 44 |
+
response = groq_llm.invoke(prompt)
|
| 45 |
return response.strip()
|
| 46 |
except Exception as e:
|
| 47 |
logging.error(f"Error generating first question: {e}")
|
|
|
|
| 134 |
}}
|
| 135 |
"""
|
| 136 |
|
| 137 |
+
response = groq_llm.invoke(prompt)
|
| 138 |
# Extract JSON from response
|
| 139 |
start_idx = response.find("{")
|
| 140 |
end_idx = response.rfind("}") + 1
|