V2a
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ openai.api_key = os.environ["api"]
|
|
8 |
# Define function to generate copy
|
9 |
def generate_copy(brand_name, description, occasion):
|
10 |
prompt = f"Generate a copy for {brand_name} for {occasion} occasion. Make it professional and engaging, with creative usage of words based on the occasion. Puns if needed. {description}"
|
11 |
-
model_engine = "text-davinci-
|
12 |
|
13 |
# Call OpenAI's GPT-3 model to generate the copy
|
14 |
response = openai.Completion.create(
|
|
|
8 |
# Define function to generate copy
|
9 |
def generate_copy(brand_name, description, occasion):
|
10 |
prompt = f"Generate a copy for {brand_name} for {occasion} occasion. Make it professional and engaging, with creative usage of words based on the occasion. Puns if needed. {description}"
|
11 |
+
model_engine = "text-davinci-003" # Use the most advanced and expensive GPT-3 model
|
12 |
|
13 |
# Call OpenAI's GPT-3 model to generate the copy
|
14 |
response = openai.Completion.create(
|