Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,15 +97,15 @@ def generate_headlines(number_of_headlines, target_audience, product, temperatur
|
|
| 97 |
|
| 98 |
chat_session = model.start_chat(
|
| 99 |
history=[
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
]
|
| 110 |
)
|
| 111 |
|
|
|
|
| 97 |
|
| 98 |
chat_session = model.start_chat(
|
| 99 |
history=[
|
| 100 |
+
{
|
| 101 |
+
"role": "user",
|
| 102 |
+
"parts": [
|
| 103 |
+
f"Tu tarea es crear {number_of_headlines} ganchos o encabezados titulares llamativos diseñados para {target_audience} con el fin de generar interés en {product}. "
|
| 104 |
+
f"Usa la siguiente mención: {mention_instruction}. "
|
| 105 |
+
"Los ganchos deben ser de este tipo: "
|
| 106 |
+
+ " ".join([", ".join(ejemplos) for ejemplos in headline_types.values()])
|
| 107 |
+
],
|
| 108 |
+
},
|
| 109 |
]
|
| 110 |
)
|
| 111 |
|