pradeepsengarr commited on
Commit
83146fc
·
verified ·
1 Parent(s): 162e462

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -36,7 +36,9 @@ def get_response(query):
36
  confidence = 1 - D[0][0] / 10 # Normalize confidence score
37
 
38
  if confidence > 0.5:
39
- return f"**{resume_keys[I[0][0]].capitalize()}**: {resume_values[I[0][0]]} \n\n *(Confidence: {confidence:.2f})*"
 
 
40
  else:
41
  return "I'm not sure about this. Please try asking differently or be more specific."
42
 
@@ -51,7 +53,8 @@ suggested_questions = [
51
  "What skills do you have?",
52
  "Tell me about your experience?",
53
  "What are your certifications?",
54
- "List your projects."
 
55
  ]
56
 
57
  st.write("### Quick Questions")
 
36
  confidence = 1 - D[0][0] / 10 # Normalize confidence score
37
 
38
  if confidence > 0.5:
39
+ key = resume_keys[I[0][0]]
40
+ answer = resume_data[key]
41
+ return f"**{key.capitalize()}**: {answer}"
42
  else:
43
  return "I'm not sure about this. Please try asking differently or be more specific."
44
 
 
53
  "What skills do you have?",
54
  "Tell me about your experience?",
55
  "What are your certifications?",
56
+ "List your projects.",
57
+ "What is your mobile number?"
58
  ]
59
 
60
  st.write("### Quick Questions")