tunght commited on
Commit
9803bb4
·
1 Parent(s): a549c57

remove 'product description' phrase

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -386,14 +386,15 @@ Return the reformatted structure only. Do not add any preceding or trailing char
386
 
387
  <structure>/n{structure}</structure>"""
388
 
389
- gemini_prompt = """You are given information of a product, a reference structure, and a reference copy.
390
- Please analyze the structure, make a plan on how to follow the structure correctly, and write a product
391
- description for the product. Use the tone of voice of the reference copy for the generated description.
392
- Write from {min_length} to {max_length} words.
393
- Do not hallucinate, do not add information that is not in the product information.
394
  Try your best to avoid using the excluded words and phrases.
395
  Try your best to include the included words and phrases in the product description.
396
- Do not enclose the output in html tags, quotes, braces, brackets or anything.
 
397
  Return the product description only.
398
 
399
  <product_information>
 
386
 
387
  <structure>/n{structure}</structure>"""
388
 
389
+ gemini_prompt = """
390
+ You are given information of a product, a reference structure, and a reference copy.
391
+ Please analyze the structure, make a plan on how to follow the structure correctly.
392
+ Use the tone of voice of the reference copy if available for the generated description.
393
+ Do not hallucinate, do not add information that is not in the product information.
394
  Try your best to avoid using the excluded words and phrases.
395
  Try your best to include the included words and phrases in the product description.
396
+ Make sure to keep to the requirements of the structure, writing no more or less than specified.
397
+ Do not enclose the output in html tags, quotes, braces, brackets or anything.
398
  Return the product description only.
399
 
400
  <product_information>