Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -204,8 +204,7 @@ def create_fullview_html(svg):
|
|
204 |
"""
|
205 |
def generate_similar_prompts(example_prompt):
|
206 |
"""Generate 10 similar testimonial prompts based on an example prompt using GPT-4 mini"""
|
207 |
-
system_prompt = """
|
208 |
-
generate 10 unique testimonial prompts that start with 'Create' and are similar in style but with variations in:"""
|
209 |
|
210 |
user_prompt = f"Example prompt: {example_prompt}\n\nGenerate 10 similar prompts that start with 'Create', with good alignment and default positioning"
|
211 |
try:
|
@@ -227,7 +226,7 @@ def generate_similar_prompts(example_prompt):
|
|
227 |
quality_prompts = []
|
228 |
for prompt in prompts_list:
|
229 |
if "good alignment" not in prompt.lower() and "default positioning" not in prompt.lower():
|
230 |
-
prompt += "
|
231 |
quality_prompts.append(prompt)
|
232 |
|
233 |
if len(quality_prompts) < 10:
|
|
|
204 |
"""
|
205 |
def generate_similar_prompts(example_prompt):
|
206 |
"""Generate 10 similar testimonial prompts based on an example prompt using GPT-4 mini"""
|
207 |
+
system_prompt = """create svg code with good alignment, default word positioning and high SVG quality. Please provide complete SVG code only and it must 1080 by 1080"""
|
|
|
208 |
|
209 |
user_prompt = f"Example prompt: {example_prompt}\n\nGenerate 10 similar prompts that start with 'Create', with good alignment and default positioning"
|
210 |
try:
|
|
|
226 |
quality_prompts = []
|
227 |
for prompt in prompts_list:
|
228 |
if "good alignment" not in prompt.lower() and "default positioning" not in prompt.lower():
|
229 |
+
prompt += "good quality"
|
230 |
quality_prompts.append(prompt)
|
231 |
|
232 |
if len(quality_prompts) < 10:
|