Spaces:
Paused
Paused
Remove auto structure improvement
Browse files
app.py
CHANGED
|
@@ -586,8 +586,8 @@ def generate(*data):
|
|
| 586 |
if len(copy.strip()) > 0 and len(structure.strip()) > 0:
|
| 587 |
print('------------')
|
| 588 |
print("Using both copy and structure")
|
| 589 |
-
print("Improving structure")
|
| 590 |
-
structure = improve_structure(chat=chat, structure=structure)
|
| 591 |
messages = [
|
| 592 |
SystemMessage(content=f"""You are a helpful assistant that writes about products for ecommerce websites. Make sure to write in {languages[i]} language."""),
|
| 593 |
HumanMessage(content=struct_copy_prompt.format(nversions=nversions, min_length=min_length, max_length=max_length, key_features=key_features, structure=structure, copy=copy, included_phrases=included_phrases, excluded_phrases=excluded_phrases)),]
|
|
@@ -604,8 +604,8 @@ def generate(*data):
|
|
| 604 |
elif len(structure.strip()) > 0:
|
| 605 |
print('------------')
|
| 606 |
print("Using structure")
|
| 607 |
-
print("Improving structure")
|
| 608 |
-
structure = improve_structure(chat=chat, structure=structure)
|
| 609 |
messages = [
|
| 610 |
SystemMessage(content=f"""You are a helpful assistant that writes about products for ecommerce websites. Make sure to write in {languages[i]} language."""),
|
| 611 |
HumanMessage(content=struct_prompt.format(nversions=nversions, min_length=min_length, max_length=max_length, key_features=key_features, structure=structure, copy=copy, included_phrases=included_phrases, excluded_phrases=excluded_phrases)),]
|
|
|
|
| 586 |
if len(copy.strip()) > 0 and len(structure.strip()) > 0:
|
| 587 |
print('------------')
|
| 588 |
print("Using both copy and structure")
|
| 589 |
+
# print("Improving structure")
|
| 590 |
+
# structure = improve_structure(chat=chat, structure=structure)
|
| 591 |
messages = [
|
| 592 |
SystemMessage(content=f"""You are a helpful assistant that writes about products for ecommerce websites. Make sure to write in {languages[i]} language."""),
|
| 593 |
HumanMessage(content=struct_copy_prompt.format(nversions=nversions, min_length=min_length, max_length=max_length, key_features=key_features, structure=structure, copy=copy, included_phrases=included_phrases, excluded_phrases=excluded_phrases)),]
|
|
|
|
| 604 |
elif len(structure.strip()) > 0:
|
| 605 |
print('------------')
|
| 606 |
print("Using structure")
|
| 607 |
+
# print("Improving structure")
|
| 608 |
+
# structure = improve_structure(chat=chat, structure=structure)
|
| 609 |
messages = [
|
| 610 |
SystemMessage(content=f"""You are a helpful assistant that writes about products for ecommerce websites. Make sure to write in {languages[i]} language."""),
|
| 611 |
HumanMessage(content=struct_prompt.format(nversions=nversions, min_length=min_length, max_length=max_length, key_features=key_features, structure=structure, copy=copy, included_phrases=included_phrases, excluded_phrases=excluded_phrases)),]
|