Spaces:
Running
Running
Tu Nombre commited on
Commit ·
0c63a52
1
Parent(s): 9390027
fix tono
Browse files- cliente_template.py +2 -1
cliente_template.py
CHANGED
|
@@ -49,9 +49,10 @@ def log(msg):
|
|
| 49 |
print(msg, flush=True)
|
| 50 |
|
| 51 |
def generar_guion():
|
|
|
|
| 52 |
client = Groq(api_key=GROQ_KEY)
|
| 53 |
res = client.chat.completions.create(
|
| 54 |
-
messages=[{"role":"user","content":f"Escribe SOLO el texto a narrar en un video de 60 segundos sobre {NICHO}. Tono: {
|
| 55 |
model="llama-3.3-70b-versatile", temperature=0.82
|
| 56 |
)
|
| 57 |
return res.choices[0].message.content.strip()
|
|
|
|
| 49 |
print(msg, flush=True)
|
| 50 |
|
| 51 |
def generar_guion():
|
| 52 |
+
_tono_actual = CONFIG.get("tono", "educativo")
|
| 53 |
client = Groq(api_key=GROQ_KEY)
|
| 54 |
res = client.chat.completions.create(
|
| 55 |
+
messages=[{"role":"user","content":f"Escribe SOLO el texto a narrar en un video de 60 segundos sobre {NICHO}. Tono: {_tono_actual}. NO incluyas indicaciones como narrador dice, voz en off, intro, outro, ni nada que no sea el texto a leer. Directo al grano, sin simbolos, sin hashtags, sin emojis."}],
|
| 56 |
model="llama-3.3-70b-versatile", temperature=0.82
|
| 57 |
)
|
| 58 |
return res.choices[0].message.content.strip()
|