Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ def formatar_resposta_com_codigo(resposta: str) -> str:
|
|
138 |
# Detecta blocos de c贸digo com ```
|
139 |
resposta_formatada = re.sub(
|
140 |
r'```(\w+)?\n(.*?)\n```',
|
141 |
-
r'<div style="background-color: #f8f9fa;color: #1a1a1a !important; border: 1px solid #e9ecef; border-radius: 8px; padding: 15px; margin: 10px 0; font-family: Monaco, Consolas, monospace; overflow-x: auto;"><strong>馃捇 C贸digo:</strong><br><pre style="margin: 5px 0; white-space: pre-wrap; word-wrap: break-word;"><code>\2</code></pre></div>',
|
142 |
resposta,
|
143 |
flags=re.DOTALL
|
144 |
)
|
|
|
138 |
# Detecta blocos de c贸digo com ```
|
139 |
resposta_formatada = re.sub(
|
140 |
r'```(\w+)?\n(.*?)\n```',
|
141 |
+
r'<div style="background-color: #f8f9fa;color: #1a1a1a !important; border: 1px solid #e9ecef; border-radius: 8px; padding: 15px; margin: 10px 0; font-family: Monaco, Consolas, monospace; overflow-x: auto;"><strong style="color: black !important;">馃捇 C贸digo:</strong><br><pre style="color: black !important; margin: 5px 0; white-space: pre-wrap; word-wrap: break-word;"><code>\2</code></pre></div>',
|
142 |
resposta,
|
143 |
flags=re.DOTALL
|
144 |
)
|