Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -117,19 +117,19 @@ def create_pipeline_fr(titre_article, mot_cle_principal, ton_cible, optional_tex
|
|
| 117 |
rep6 = call_ai_api(prompt6)
|
| 118 |
|
| 119 |
prompt7= ("La seule chose qu'il faudrait corriger."
|
| 120 |
-
"c'est la mise en gras des mots-clés LSI/mots-clés associés et/ou mots importants du texte. LAISSE LE MEME TEXT " + rep6)
|
| 121 |
rep7= call_ai_api(prompt7)
|
| 122 |
print("Prompt 7\n", rep7)
|
| 123 |
|
| 124 |
-
# Eighth AI API call to ensure HTML formatting and specific content rules
|
| 125 |
-
prompt8 = (f"Pour la mise en gras, utiliser le format HTML avec <strong>. "
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
rep8 = call_ai_api(prompt8)
|
| 130 |
-
print("Prompt 8\n",rep8)
|
| 131 |
-
|
| 132 |
-
return
|
| 133 |
|
| 134 |
|
| 135 |
def create_pipeline(article_title, main_keyword, target_tone,optional_text):
|
|
|
|
| 117 |
rep6 = call_ai_api(prompt6)
|
| 118 |
|
| 119 |
prompt7= ("La seule chose qu'il faudrait corriger."
|
| 120 |
+
"c'est la mise en gras utiliser le format HTML avec <strong> des mots-clés LSI/mots-clés associés et/ou mots importants du texte. LAISSE LE MEME TEXT " + rep6)
|
| 121 |
rep7= call_ai_api(prompt7)
|
| 122 |
print("Prompt 7\n", rep7)
|
| 123 |
|
| 124 |
+
# # Eighth AI API call to ensure HTML formatting and specific content rules
|
| 125 |
+
# prompt8 = (f"Pour la mise en gras, utiliser le format HTML avec <strong>. "
|
| 126 |
+
# "Certaines réponses ont du texte en plus de l’article, il ne faut que l’article en réponse, aucun autre texte avant ou après. "
|
| 127 |
+
# "Assure-toi que {titre_article} est le titre principal et qu'il ne s'est pas changé. "
|
| 128 |
+
# "LAISSE LE MEME TEXTE. " + rep7)
|
| 129 |
+
# rep8 = call_ai_api(prompt8)
|
| 130 |
+
# print("Prompt 8\n",rep8)
|
| 131 |
+
|
| 132 |
+
return rep7
|
| 133 |
|
| 134 |
|
| 135 |
def create_pipeline(article_title, main_keyword, target_tone,optional_text):
|