Spaces:
Sleeping
Sleeping
shnippi commited on
Commit ·
33a6b97
1
Parent(s): a289f95
minor
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def email(linkedin_url, description_of_what_you_are_selling , description_of_who
|
|
| 37 |
email_address = str(resp["person"]["email"])
|
| 38 |
|
| 39 |
# shorten the json if too long, otherwise 400 for openai
|
| 40 |
-
if len(str(resp)) >
|
| 41 |
resp = str(resp)[0:8000]
|
| 42 |
|
| 43 |
|
|
@@ -67,7 +67,7 @@ def email(linkedin_url, description_of_what_you_are_selling , description_of_who
|
|
| 67 |
|
| 68 |
# write the mail
|
| 69 |
|
| 70 |
-
prompt = "now write me a
|
| 71 |
|
| 72 |
if calendly_link != "":
|
| 73 |
prompt = prompt + "The person can schedule a call here: " + calendly_link
|
|
|
|
| 37 |
email_address = str(resp["person"]["email"])
|
| 38 |
|
| 39 |
# shorten the json if too long, otherwise 400 for openai
|
| 40 |
+
if len(str(resp)) > 8000:
|
| 41 |
resp = str(resp)[0:8000]
|
| 42 |
|
| 43 |
|
|
|
|
| 67 |
|
| 68 |
# write the mail
|
| 69 |
|
| 70 |
+
prompt = "now write me a " + type_of_email + " cold outreach email to this person that is highly personalized with the following information: " + summary + ". \n The email should be about selling " + description_of_what_you_are_selling + "The email is from " + description_of_who_you_are + " . Don't use placeholders. ",
|
| 71 |
|
| 72 |
if calendly_link != "":
|
| 73 |
prompt = prompt + "The person can schedule a call here: " + calendly_link
|