varun324242 commited on
Commit
e786f9f
·
verified ·
1 Parent(s): 121d390

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -204,7 +204,8 @@ 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 = """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,7 +227,7 @@ def generate_similar_prompts(example_prompt):
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:
 
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 = """You are a creative testimonial prompt generator. Based on the following example 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
  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 += " create svg code with good alignment, default word positioning and high SVG quality. Please provide complete SVG code."
231
  quality_prompts.append(prompt)
232
 
233
  if len(quality_prompts) < 10: