-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.py
More file actions
33 lines (19 loc) · 877 Bytes
/
index.py
File metadata and controls
33 lines (19 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import openai
openai.api_key = "ENTER-YOUR_OPENAI_KEY_HERE"
company_name = input("Enter the company name: ")
company_description = input("Enter a brief description of the company: ")
prompt = f"""**Attention:**
**Write a short captivating introduction about {company_name} that grabs the reader's attention.**
**Interest:**
**Briefly summarize {company_description}, highlighting what makes them stand out.**
**Desire:**
**Explain how {company_name} helps customers overcome a challenge like [mention a relevant problem]. Describe the benefits of using their products or services.**
**Action:**
**Conclude with a clear call to action, encouraging the reader to visit {company_name}'s website or contact them.**
"""
response = openai.Completion.create(
engine="gpt-3.5-turbo-instruct",
prompt=prompt,
max_tokens=350
)
print(response.choices[0].text)