Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -119,8 +119,16 @@ def create_pipeline_fr(titre_article, mot_cle_principal, ton_cible, optional_tex
|
|
| 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 |
|
| 123 |
-
return rep7
|
| 124 |
|
| 125 |
def create_pipeline(article_title, main_keyword, target_tone,optional_text):
|
| 126 |
# Initial AI API call
|
|
|
|
| 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 |
+
|
| 123 |
+
# Eighth AI API call to ensure HTML formatting and specific content rules
|
| 124 |
+
prompt8 = (f"Pour la mise en gras, utiliser le format HTML avec <strong>. "
|
| 125 |
+
"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. "
|
| 126 |
+
"Assure-toi que {titre_article} est le titre principal et qu'il ne s'est pas changé. "
|
| 127 |
+
"LAISSE LE MEME TEXTE. " + rep7)
|
| 128 |
+
rep8 = call_ai_api(prompt8)
|
| 129 |
+
|
| 130 |
+
return rep8
|
| 131 |
|
|
|
|
| 132 |
|
| 133 |
def create_pipeline(article_title, main_keyword, target_tone,optional_text):
|
| 134 |
# Initial AI API call
|