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