Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,14 +16,14 @@ additional_details = st.text_area("Additional Details", placeholder="Any specifi
|
|
| 16 |
|
| 17 |
# Function to generate the lead generation plan
|
| 18 |
def generate_lead_generation_plan(business_description, target_customers, advertising_budget, additional_details):
|
| 19 |
-
prompt = f"Create a
|
| 20 |
response = openai.ChatCompletion.create(
|
| 21 |
model="gpt-4",
|
| 22 |
messages=[
|
| 23 |
-
{"role": "system", "content": "You are a marketing expert."},
|
| 24 |
{"role": "user", "content": prompt}
|
| 25 |
],
|
| 26 |
-
max_tokens=
|
| 27 |
)
|
| 28 |
return response.choices[0].message['content']
|
| 29 |
|
|
|
|
| 16 |
|
| 17 |
# Function to generate the lead generation plan
|
| 18 |
def generate_lead_generation_plan(business_description, target_customers, advertising_budget, additional_details):
|
| 19 |
+
prompt = f"Create a specific and actionable lead generation plan for 2024 for a business described as follows: {business_description}. The target customers are: {target_customers}. The advertising budget is: {advertising_budget}. Additional details: {additional_details}. Include detailed steps, specific platforms for advertising, tools for lead capture and management, and clear action items."
|
| 20 |
response = openai.ChatCompletion.create(
|
| 21 |
model="gpt-4",
|
| 22 |
messages=[
|
| 23 |
+
{"role": "system", "content": "You are a marketing expert providing actionable plans."},
|
| 24 |
{"role": "user", "content": prompt}
|
| 25 |
],
|
| 26 |
+
max_tokens=700 # Adjust the token limit as needed for more detailed responses
|
| 27 |
)
|
| 28 |
return response.choices[0].message['content']
|
| 29 |
|