V2
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ openai.api_key = os.environ["api"]
|
|
7 |
|
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. {description}"
|
11 |
model_engine = "text-davinci-002" # Use the most advanced and expensive GPT-3 model
|
12 |
|
13 |
# Call OpenAI's GPT-3 model to generate the copy
|
@@ -27,7 +27,7 @@ def generate_copy(brand_name, description, occasion):
|
|
27 |
inputs = [
|
28 |
gr.inputs.Textbox(label="Brand/Business Name"),
|
29 |
gr.inputs.Textbox(label="Description"),
|
30 |
-
gr.inputs.
|
31 |
]
|
32 |
|
33 |
# Define outputs using Gradio library
|
|
|
7 |
|
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-002" # Use the most advanced and expensive GPT-3 model
|
12 |
|
13 |
# Call OpenAI's GPT-3 model to generate the copy
|
|
|
27 |
inputs = [
|
28 |
gr.inputs.Textbox(label="Brand/Business Name"),
|
29 |
gr.inputs.Textbox(label="Description"),
|
30 |
+
gr.inputs.Textbox(label="Occasion")
|
31 |
]
|
32 |
|
33 |
# Define outputs using Gradio library
|