Docfile commited on
Commit
3ff6880
·
verified ·
1 Parent(s): 95080aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -20
app.py CHANGED
@@ -43,26 +43,7 @@ def generate_latex_response(image, question):
43
  answer = response.candidates[0].content.parts[1].text
44
 
45
  # Formate en LaTeX
46
- latex_output = f"""\\documentclass{{article}}
47
- \\usepackage{{amsmath}}
48
- \\usepackage{{amssymb}}
49
- \\usepackage[utf8]{{inputenc}}
50
- \\usepackage[T1]{{fontenc}}
51
- \\usepackage{{lmodern}}
52
- \\usepackage[french]{{babel}}
53
- \\begin{{document}}
54
-
55
- \\section*{{Analyse de l'image}}
56
-
57
- \\subsection*{{Réflexions:}}
58
- {thoughts}
59
-
60
- \\subsection*{{Réponse:}}
61
- {answer}
62
-
63
- \\end{{document}}
64
-
65
- """
66
  print(answer)
67
  return answer
68
 
 
43
  answer = response.candidates[0].content.parts[1].text
44
 
45
  # Formate en LaTeX
46
+ latex_output = answer
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  print(answer)
48
  return answer
49