Spaces:
Sleeping
Sleeping
faizr206
commited on
Commit
·
3bb2e55
1
Parent(s):
77d95dc
render error changes
Browse files- app/main.py +8 -8
app/main.py
CHANGED
|
@@ -1317,14 +1317,14 @@ def render_code(inp: RenderCodeIn):
|
|
| 1317 |
)
|
| 1318 |
except RenderError as exc:
|
| 1319 |
log = exc.log or ""
|
| 1320 |
-
if not inp.auto_fix:
|
| 1321 |
-
|
| 1322 |
-
|
| 1323 |
-
|
| 1324 |
-
|
| 1325 |
-
|
| 1326 |
-
|
| 1327 |
-
|
| 1328 |
fixed_code, fixed_video, final_log = _auto_fix_render(
|
| 1329 |
user_prompt=inp.prompt or "User-edited Manim code",
|
| 1330 |
code=inp.code,
|
|
|
|
| 1317 |
)
|
| 1318 |
except RenderError as exc:
|
| 1319 |
log = exc.log or ""
|
| 1320 |
+
# if False: #not inp.auto_fix:
|
| 1321 |
+
# raise HTTPException(
|
| 1322 |
+
# status_code=400,
|
| 1323 |
+
# detail={
|
| 1324 |
+
# "error": "Render failed",
|
| 1325 |
+
# "message": "Render failed. Attempting automatic fix...",
|
| 1326 |
+
# },
|
| 1327 |
+
# )
|
| 1328 |
fixed_code, fixed_video, final_log = _auto_fix_render(
|
| 1329 |
user_prompt=inp.prompt or "User-edited Manim code",
|
| 1330 |
code=inp.code,
|