Spaces:
Paused
Paused
add length to structure
Browse files115 unmodified lines11611711811912012112267 unmodified lines19019119219319419519619759 unmodified lines257258259260261262263264115 unmodified linesopenai.api_key = os.environ["OPENAI_API_KEY"]struct_copy_prompt = """Generate {nversions} versions of the product description for a product with the following information.For each version, write at least {min_length} words and at most {max_length} words.Make sure that the structure of each output follows the reference structure. Do not add any additional sentences or structures that are not in the reference structure.Make sure to use the tone of voice, rythm, cadence and style of the reference copy for each output.Use markdown format for each output.67 unmodified linescopy_prompt = """Generate {nversions} versions of the product description for a product with the following information.For each version, write at least {min_length} words and at most {max_length} words.Make sure that the structure of each output follows the structure of the reference copy.Make sure to use the tone of voice, rythm, cadence and style of the reference copy for each output.Use markdown format for each output.Make sure that the structure of each output follows the structure of the reference copy.59 unmodified linesstruct_prompt = """Generate {nversions} versions of the product description for a product with the following information.For each version, write at least {min_length} words and at most {max_length} words.Make sure that the structure of each output follows the reference structure. Do not add any additional sentences or structures that are not in the reference structure.Use markdown format for each output.Do not include any part of the reference structure in the output.Make sure that the structure of each output follows the reference structure.115 unmodified lines11611711811912012112212367 unmodified lines19119219319419519619719859 unmodified lines258259260261262263264265115 unmodified linesopenai.api_key = os.environ["OPENAI_API_KEY"]struct_copy_prompt = """Generate {nversions} versions of the product description for a product with the following information.If the structure does not specify the length of the output, then write at least {min_length} words and at most {max_length} words.If the structure specifies the length of the output, then write according to the specified length.Make sure that the structure of each output follows the reference structure. Do not add any additional sentences or structures that are not in the reference structure.Make sure to use the tone of voice, rythm, cadence and style of the reference copy for each output.Use markdown format for each output.67 unmodified linescopy_prompt = """Generate {nversions} versions of the product description for a product with the following information.If the structure does not specify the length of the output, then write at least {min_length} words and at most {max_length} words.If the structure specifies the length of the output, then write according to the specified length.Make sure that the structure of each output follows the structure of the reference copy.Make sure to use the tone of voice, rythm, cadence and style of the reference copy for each output.Use markdown format for each output.Make sure that the structure of each output follows the structure of the reference copy.59 unmodified linesstruct_prompt = """Generate {nversions} versions of the product description for a product with the following information.If the structure does not specify the length of the output, then write at least {min_length} words and at most {max_length} words.If the structure specifies the length of the output, then write according to the specified length.Make sure that the structure of each output follows the reference structure. Do not add any additional sentences or structures that are not in the reference structure.Use markdown format for each output.Do not include any part of the reference structure in the output.Make sure that the structure of each output follows the reference structure.
app.py+6-5