Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
| 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")
|