Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -113,8 +113,12 @@ def create_pipeline_fr(titre_article, mot_cle_principal, ton_cible, optional_tex
|
|
| 113 |
prompt6 = ("Trop court, seulement j'aurai besoin de 1500 mots minimum attendu. "
|
| 114 |
"Laisse la même structure de texte, ajoute juste du contenu. " + rep5)
|
| 115 |
rep6 = call_ai_api(prompt6)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
|
| 117 |
-
return
|
| 118 |
|
| 119 |
def create_pipeline(article_title, main_keyword, target_tone,optional_text):
|
| 120 |
# Initial AI API call
|
|
@@ -150,7 +154,10 @@ def create_pipeline(article_title, main_keyword, target_tone,optional_text):
|
|
| 150 |
"Keep the same text structure, just add more content. " + rep5)
|
| 151 |
rep6 = call_ai_api(prompt6)
|
| 152 |
|
| 153 |
-
|
|
|
|
|
|
|
|
|
|
| 154 |
|
| 155 |
def generer_mots(titre_article,mot_cle_principal):
|
| 156 |
words=call_ai_api("Generes moi des mots-clés similaires a partir de ca ( SEULEMENT DES MOTS OU GROUPE DE MOTS séparés par virgules ) :"+titre_article+" et "+mot_cle_principal)
|
|
|
|
| 113 |
prompt6 = ("Trop court, seulement j'aurai besoin de 1500 mots minimum attendu. "
|
| 114 |
"Laisse la même structure de texte, ajoute juste du contenu. " + rep5)
|
| 115 |
rep6 = call_ai_api(prompt6)
|
| 116 |
+
|
| 117 |
+
prompt7= ("La seule chose qu'il faudrait corriger."
|
| 118 |
+
"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)
|
| 119 |
+
rep7= call_ai_api(prompt7)
|
| 120 |
|
| 121 |
+
return rep7
|
| 122 |
|
| 123 |
def create_pipeline(article_title, main_keyword, target_tone,optional_text):
|
| 124 |
# Initial AI API call
|
|
|
|
| 154 |
"Keep the same text structure, just add more content. " + rep5)
|
| 155 |
rep6 = call_ai_api(prompt6)
|
| 156 |
|
| 157 |
+
prompt7 = ("The only thing that needs correcting is the bolding of LSI keywords/associated keywords and/or important words in the text. KEEP THE SAME TEXT " + rep6)
|
| 158 |
+
rep7 = call_ai_api(prompt7)
|
| 159 |
+
|
| 160 |
+
return rep7
|
| 161 |
|
| 162 |
def generer_mots(titre_article,mot_cle_principal):
|
| 163 |
words=call_ai_api("Generes moi des mots-clés similaires a partir de ca ( SEULEMENT DES MOTS OU GROUPE DE MOTS séparés par virgules ) :"+titre_article+" et "+mot_cle_principal)
|