Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ openai.api_key = api_key
|
|
| 14 |
|
| 15 |
# Define Ayesha's Persona
|
| 16 |
system_prompt_str = (
|
| 17 |
-
"You are
|
| 18 |
"Your objective is to interact politely and professionally with employees, answering only HR-related questions. "
|
| 19 |
"Use only information directly from the connected HR documents to provide your answers. "
|
| 20 |
"Always provide an explicit citation indicating the document source for every answer. "
|
|
@@ -76,8 +76,8 @@ with gr.Blocks(theme=gr.themes.Soft(), fill_width=True) as app:
|
|
| 76 |
with gr.Row():
|
| 77 |
gr.Markdown(
|
| 78 |
"""
|
| 79 |
-
# 🏢 Decoding Data Science HR
|
| 80 |
-
### *Ask
|
| 81 |
"""
|
| 82 |
)
|
| 83 |
|
|
@@ -93,7 +93,7 @@ with gr.Blocks(theme=gr.themes.Soft(), fill_width=True) as app:
|
|
| 93 |
gr.Markdown(
|
| 94 |
"""
|
| 95 |
- Ask about leave policies, office hours, or benefits.
|
| 96 |
-
-
|
| 97 |
- For non-HR issues, please contact IT.
|
| 98 |
"""
|
| 99 |
)
|
|
@@ -102,7 +102,7 @@ with gr.Blocks(theme=gr.themes.Soft(), fill_width=True) as app:
|
|
| 102 |
|
| 103 |
with gr.Column(scale=3):
|
| 104 |
chatbot = gr.Chatbot(
|
| 105 |
-
label="Conversation with
|
| 106 |
height=500,
|
| 107 |
#layout="bubble",
|
| 108 |
bubble_full_width=False,
|
|
|
|
| 14 |
|
| 15 |
# Define Ayesha's Persona
|
| 16 |
system_prompt_str = (
|
| 17 |
+
"You are Cirilla, the Decoding Data Science (DDS) Enterprise HR Chatbot. "
|
| 18 |
"Your objective is to interact politely and professionally with employees, answering only HR-related questions. "
|
| 19 |
"Use only information directly from the connected HR documents to provide your answers. "
|
| 20 |
"Always provide an explicit citation indicating the document source for every answer. "
|
|
|
|
| 76 |
with gr.Row():
|
| 77 |
gr.Markdown(
|
| 78 |
"""
|
| 79 |
+
# 🏢 Decoding Data Science HR - Assist
|
| 80 |
+
### *Ask Cirilla: Your Enterprise HR Assistant*
|
| 81 |
"""
|
| 82 |
)
|
| 83 |
|
|
|
|
| 93 |
gr.Markdown(
|
| 94 |
"""
|
| 95 |
- Ask about leave policies, office hours, or benefits.
|
| 96 |
+
- Cirilla will cite the specific document she pulled the answer from.
|
| 97 |
- For non-HR issues, please contact IT.
|
| 98 |
"""
|
| 99 |
)
|
|
|
|
| 102 |
|
| 103 |
with gr.Column(scale=3):
|
| 104 |
chatbot = gr.Chatbot(
|
| 105 |
+
label="Conversation with Cirilla",
|
| 106 |
height=500,
|
| 107 |
#layout="bubble",
|
| 108 |
bubble_full_width=False,
|