Mohinikathro commited on
Commit
43a0973
·
verified ·
1 Parent(s): 689907f

changes made in app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -225,6 +225,8 @@ def start_interview(name, domain, company, level):
225
  traceback.print_exc()
226
  return [{"role": "System", "content": f"Critical error: {e}"}], None
227
 
 
 
228
  def submit_response(response, state):
229
  print("Submit Response Called")
230
  print("Response:", response)
@@ -279,6 +281,8 @@ def submit_response(response, state):
279
 
280
  return state["conversation"], state
281
 
 
 
282
  def end_interview(state):
283
  state["interview_active"] = False
284
  total = sum(rating_scores.get(ev["rating"], 0) for ev in state["evaluations"])
 
225
  traceback.print_exc()
226
  return [{"role": "System", "content": f"Critical error: {e}"}], None
227
 
228
+ print("Conversation returned to UI:", state["conversation"])
229
+
230
  def submit_response(response, state):
231
  print("Submit Response Called")
232
  print("Response:", response)
 
281
 
282
  return state["conversation"], state
283
 
284
+ print("Conversation returned to UI:", state["conversation"])
285
+
286
  def end_interview(state):
287
  state["interview_active"] = False
288
  total = sum(rating_scores.get(ev["rating"], 0) for ev in state["evaluations"])