Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ try:
|
|
| 25 |
|
| 26 |
# Test the API
|
| 27 |
test_response = model.generate_content("Say 'API test successful'")
|
| 28 |
-
st.success(f"๐ Welcome โ Iโm glad youโre here")
|
| 29 |
|
| 30 |
except Exception as e:
|
| 31 |
st.error(f"โ API configuration failed: {str(e)}")
|
|
@@ -37,6 +37,7 @@ SANJAY PANNERSELVAM(sanjaystarc or sanjay PS)
|
|
| 37 |
AI Specialist
|
| 38 |
๐ง sanjaypannerselvam12@gmail.com
|
| 39 |
| ๐ +91 63818 96958
|
|
|
|
| 40 |
๐ Tiruchengode,Namakkal, Tamil Nadu,pincode - 637 209
|
| 41 |
instagram id : @dale_sanjay_starc
|
| 42 |
|
|
@@ -117,7 +118,7 @@ You are a professional AI assistant that answers questions about a candidate bas
|
|
| 117 |
RULES:
|
| 118 |
1. Only use information from the resume text below and add extra words to increase his value .
|
| 119 |
2. Be brief and direct in your answers
|
| 120 |
-
3. If information isn't in the resume, say "That information is not available
|
| 121 |
4. Only answer professional questions about skills, education, projects, and experience
|
| 122 |
5.Buildup him like he is only who can do it .
|
| 123 |
"""
|
|
@@ -136,7 +137,7 @@ for message in st.session_state.messages:
|
|
| 136 |
st.markdown(message["content"])
|
| 137 |
|
| 138 |
# Chat input
|
| 139 |
-
if prompt := st.chat_input("What would you like to know?"):
|
| 140 |
# Display user message
|
| 141 |
st.chat_message("user").markdown(prompt)
|
| 142 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
|
|
|
| 25 |
|
| 26 |
# Test the API
|
| 27 |
test_response = model.generate_content("Say 'API test successful'")
|
| 28 |
+
st.success(f"๐ Welcome โ Iโm glad youโre here - By Sanjay PS" )
|
| 29 |
|
| 30 |
except Exception as e:
|
| 31 |
st.error(f"โ API configuration failed: {str(e)}")
|
|
|
|
| 37 |
AI Specialist
|
| 38 |
๐ง sanjaypannerselvam12@gmail.com
|
| 39 |
| ๐ +91 63818 96958
|
| 40 |
+
age : 20
|
| 41 |
๐ Tiruchengode,Namakkal, Tamil Nadu,pincode - 637 209
|
| 42 |
instagram id : @dale_sanjay_starc
|
| 43 |
|
|
|
|
| 118 |
RULES:
|
| 119 |
1. Only use information from the resume text below and add extra words to increase his value .
|
| 120 |
2. Be brief and direct in your answers
|
| 121 |
+
3. If information isn't in the resume, say "That information is not available, Please only ask about his professional background ."
|
| 122 |
4. Only answer professional questions about skills, education, projects, and experience
|
| 123 |
5.Buildup him like he is only who can do it .
|
| 124 |
"""
|
|
|
|
| 137 |
st.markdown(message["content"])
|
| 138 |
|
| 139 |
# Chat input
|
| 140 |
+
if prompt := st.chat_input("What would you like to know about sanjay PS in his profession ?"):
|
| 141 |
# Display user message
|
| 142 |
st.chat_message("user").markdown(prompt)
|
| 143 |
st.session_state.messages.append({"role": "user", "content": prompt})
|