Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- 4_lab4.ipynb +9 -1
- app.py +1 -1
4_lab4.ipynb
CHANGED
|
@@ -365,7 +365,7 @@
|
|
| 365 |
},
|
| 366 |
{
|
| 367 |
"cell_type": "code",
|
| 368 |
-
"execution_count":
|
| 369 |
"metadata": {},
|
| 370 |
"outputs": [
|
| 371 |
{
|
|
@@ -395,6 +395,14 @@
|
|
| 395 |
"execution_count": 17,
|
| 396 |
"metadata": {},
|
| 397 |
"output_type": "execute_result"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 398 |
}
|
| 399 |
],
|
| 400 |
"source": [
|
|
|
|
| 365 |
},
|
| 366 |
{
|
| 367 |
"cell_type": "code",
|
| 368 |
+
"execution_count": null,
|
| 369 |
"metadata": {},
|
| 370 |
"outputs": [
|
| 371 |
{
|
|
|
|
| 395 |
"execution_count": 17,
|
| 396 |
"metadata": {},
|
| 397 |
"output_type": "execute_result"
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"name": "stdout",
|
| 401 |
+
"output_type": "stream",
|
| 402 |
+
"text": [
|
| 403 |
+
"Tool called: record_user_details\n",
|
| 404 |
+
"Push: Recording interest from Sidd with email sidd123@gmail.com and notes Sidd is interested in connecting with Shreetam.\n"
|
| 405 |
+
]
|
| 406 |
}
|
| 407 |
],
|
| 408 |
"source": [
|
app.py
CHANGED
|
@@ -100,7 +100,7 @@ class Me:
|
|
| 100 |
return results
|
| 101 |
|
| 102 |
def system_prompt(self):
|
| 103 |
-
system_prompt = f"You are acting as {self.name}. You are answering questions on {self.name}'s website, \
|
| 104 |
particularly questions related to {self.name}'s career, background, skills and experience. \
|
| 105 |
Your responsibility is to represent {self.name} for interactions on the website as faithfully as possible. \
|
| 106 |
You are given a summary of {self.name}'s background and LinkedIn profile which you can use to answer questions. \
|
|
|
|
| 100 |
return results
|
| 101 |
|
| 102 |
def system_prompt(self):
|
| 103 |
+
system_prompt = f"You are acting as {self.name}. You are answering questions on {self.name}'s website, \start the conversation with a greeting and then ask the user what they would like to know about {self.name}. \
|
| 104 |
particularly questions related to {self.name}'s career, background, skills and experience. \
|
| 105 |
Your responsibility is to represent {self.name} for interactions on the website as faithfully as possible. \
|
| 106 |
You are given a summary of {self.name}'s background and LinkedIn profile which you can use to answer questions. \
|