Spaces:
Running
Running
Revert anti-bleed prompt mitigation (ineffective)
Browse files
app.py
CHANGED
|
@@ -103,12 +103,6 @@ def respond(user_msg, history, reading_text, mode, hint_mode):
|
|
| 103 |
system = SYSTEM_PROMPT + MODES.get(mode, "")
|
| 104 |
if reading_text and reading_text.strip():
|
| 105 |
system += f"\n\nTexto de lectura del estudiante:\n{reading_text.strip()}"
|
| 106 |
-
else:
|
| 107 |
-
# No reading passage → keep it a math/word problem; prevent reading-mode bleed.
|
| 108 |
-
system += ("\n\nNo hay ninguna lectura compartida: NO menciones 'el texto' ni inventes "
|
| 109 |
-
"un texto. Mantente en el problema/pregunta del estudiante. Si el estudiante "
|
| 110 |
-
"dice que no entiende o responde vago, reformula el MISMO problema de forma más "
|
| 111 |
-
"simple con un ejemplo concreto y vuelve a preguntar (no cambies de tema).")
|
| 112 |
if hint_mode:
|
| 113 |
system += ("\n\nEl estudiante pidió una PISTA: da UNA sola pista corta que lo "
|
| 114 |
"acerque, sin revelar la respuesta.")
|
|
|
|
| 103 |
system = SYSTEM_PROMPT + MODES.get(mode, "")
|
| 104 |
if reading_text and reading_text.strip():
|
| 105 |
system += f"\n\nTexto de lectura del estudiante:\n{reading_text.strip()}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
if hint_mode:
|
| 107 |
system += ("\n\nEl estudiante pidió una PISTA: da UNA sola pista corta que lo "
|
| 108 |
"acerque, sin revelar la respuesta.")
|