Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def generate_latex_response(image_path, question):
|
|
35 |
"""Génère une réponse en format LaTeX depuis le modèle Gemini."""
|
36 |
try:
|
37 |
print(question)
|
38 |
-
prompt = "
|
39 |
image_data = Image.open(image_path)
|
40 |
response = client.models.generate_content(
|
41 |
model="gemini-2.0-flash-thinking-exp",
|
@@ -131,7 +131,7 @@ def main():
|
|
131 |
st.download_button(
|
132 |
label="Télécharger le PDF",
|
133 |
data=pdf_data,
|
134 |
-
file_name="
|
135 |
mime="application/pdf"
|
136 |
)
|
137 |
else:
|
|
|
35 |
"""Génère une réponse en format LaTeX depuis le modèle Gemini."""
|
36 |
try:
|
37 |
print(question)
|
38 |
+
prompt = "Resous cette exercice. ça doit être bien présentable. c'est un devoir de lycée terminal S. Write you answer with rendering Latex . Donne uniquement du code Latex et rien d'autre. Commence ta réponse par \document"
|
39 |
image_data = Image.open(image_path)
|
40 |
response = client.models.generate_content(
|
41 |
model="gemini-2.0-flash-thinking-exp",
|
|
|
131 |
st.download_button(
|
132 |
label="Télécharger le PDF",
|
133 |
data=pdf_data,
|
134 |
+
file_name="reponse_mariam.pdf",
|
135 |
mime="application/pdf"
|
136 |
)
|
137 |
else:
|