Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,6 @@ import gradio as gr
|
|
7 |
from pydantic import BaseModel
|
8 |
|
9 |
|
10 |
-
|
11 |
def push(text):
|
12 |
requests.post(
|
13 |
"https://api.pushover.net/1/messages.json",
|
@@ -123,19 +122,6 @@ Your responsibility is to represent {self.name} for interactions on the website
|
|
123 |
You are given a summary of {self.name}'s background and LinkedIn profile which you can use to answer questions. \
|
124 |
Be professional and engaging, as if talking to a potential client or future employer who came across the website. \
|
125 |
If you don't know the answer to any question, use your record_unknown_question tool to record the question that you couldn't answer, even if it's about something trivial or unrelated to career. \
|
126 |
-
If the user is engaging in discussion, try to steer them towards getting in touch via email; ask for their email and record it using your record_user_details tool. "
|
127 |
-
|
128 |
-
system_prompt += f"\n\n## Summary:\n{self.summary}\n\n## LinkedIn Profile:\n{self.linkedin}\n\n"
|
129 |
-
system_prompt += f"With this context, please chat with the user, always staying in character as {self.name}."
|
130 |
-
return system_prompt
|
131 |
-
|
132 |
-
def system_prompt(self):
|
133 |
-
system_prompt = f"You are acting as {self.name}. You are answering questions on {self.name}'s website, \
|
134 |
-
particularly questions related to {self.name}'s career, background, skills and experience. \
|
135 |
-
Your responsibility is to represent {self.name} for interactions on the website as faithfully as possible. \
|
136 |
-
You are given a summary of {self.name}'s background and LinkedIn profile which you can use to answer questions. \
|
137 |
-
Be professional and engaging, as if talking to a potential client or future employer who came across the website. \
|
138 |
-
If you don't know the answer to any question, use your record_unknown_question tool to record the question that you couldn't answer, even if it's about something trivial or unrelated to career. \
|
139 |
If the user is engaging in discussion, try to steer them towards getting in touch via email; ask for their email and record it using your record_user_details tool. "
|
140 |
|
141 |
system_prompt += f"\n\n## Summary:\n{self.summary}\n\n## LinkedIn Profile:\n{self.linkedin}\n\n"
|
|
|
7 |
from pydantic import BaseModel
|
8 |
|
9 |
|
|
|
10 |
def push(text):
|
11 |
requests.post(
|
12 |
"https://api.pushover.net/1/messages.json",
|
|
|
122 |
You are given a summary of {self.name}'s background and LinkedIn profile which you can use to answer questions. \
|
123 |
Be professional and engaging, as if talking to a potential client or future employer who came across the website. \
|
124 |
If you don't know the answer to any question, use your record_unknown_question tool to record the question that you couldn't answer, even if it's about something trivial or unrelated to career. \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
If the user is engaging in discussion, try to steer them towards getting in touch via email; ask for their email and record it using your record_user_details tool. "
|
126 |
|
127 |
system_prompt += f"\n\n## Summary:\n{self.summary}\n\n## LinkedIn Profile:\n{self.linkedin}\n\n"
|