Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,8 @@ def generate_complete_latex(client, image_bytes):
|
|
89 |
# Convertir les bytes en image PIL
|
90 |
image = Image.open(io.BytesIO(image_bytes))
|
91 |
|
92 |
-
prompt =
|
|
|
93 |
**PROMPT AMÉLIORÉ**
|
94 |
|
95 |
# RÔLE & OBJECTIF
|
@@ -191,10 +192,7 @@ Tu es un expert en mathématiques du supérieur, un tuteur pédagogue exceptionn
|
|
191 |
# CONTRAINTES STRICTES
|
192 |
* Le seul output doit être le code LaTeX brut.
|
193 |
* Aucun texte avant `\documentclass` ou après `\end{document}` (sauf la mention spéciale).
|
194 |
-
* Inclure la ligne
|
195 |
-
|
196 |
-
|
197 |
-
"""
|
198 |
|
199 |
response = client.models.generate_content(
|
200 |
model=MODEL_SINGLE_GENERATION,
|
|
|
89 |
# Convertir les bytes en image PIL
|
90 |
image = Image.open(io.BytesIO(image_bytes))
|
91 |
|
92 |
+
prompt ="""
|
93 |
+
|
94 |
**PROMPT AMÉLIORÉ**
|
95 |
|
96 |
# RÔLE & OBJECTIF
|
|
|
192 |
# CONTRAINTES STRICTES
|
193 |
* Le seul output doit être le code LaTeX brut.
|
194 |
* Aucun texte avant `\documentclass` ou après `\end{document}` (sauf la mention spéciale).
|
195 |
+
* Inclure la ligne |Conçu par Mariam AI| juste avant `\end{document}`. """
|
|
|
|
|
|
|
196 |
|
197 |
response = client.models.generate_content(
|
198 |
model=MODEL_SINGLE_GENERATION,
|