Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -135,18 +135,7 @@ def submit_geographie():
|
|
| 135 |
|
| 136 |
try:
|
| 137 |
# Génération de l'introduction
|
| 138 |
-
dissertation =
|
| 139 |
-
dissertation += "\n\n"
|
| 140 |
-
|
| 141 |
-
# Génération du développement
|
| 142 |
-
contexte = dissertation
|
| 143 |
-
for point in points:
|
| 144 |
-
section_texte, _ = rediger_section_geographie(sujet, point, contexte)
|
| 145 |
-
dissertation += section_texte + "\n\n"
|
| 146 |
-
contexte = dissertation
|
| 147 |
-
|
| 148 |
-
# Génération de la conclusion
|
| 149 |
-
dissertation += generer_conclusion(sujet, dissertation, "géographie")
|
| 150 |
|
| 151 |
return jsonify({"output": dissertation}), 200
|
| 152 |
|
|
|
|
| 135 |
|
| 136 |
try:
|
| 137 |
# Génération de l'introduction
|
| 138 |
+
dissertation = generer_histoire(sujet,points)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
|
| 140 |
return jsonify({"output": dissertation}), 200
|
| 141 |
|