Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -308,16 +308,16 @@ with gr.Blocks(title="Manim Render & Audio Tool") as demo:
|
|
| 308 |
with gr.Tab("🎬 Manim Video Renderer"):
|
| 309 |
with gr.Row():
|
| 310 |
with gr.Column(scale=1):
|
| 311 |
-
code_input = gr.Code(label="Python Code", language="python", value=DEFAULT_CODE, visible=
|
| 312 |
-
orientation_opt = gr.Radio(choices=["Landscape (16:9)", "Portrait (9:16)"], value="Portrait (9:16)", label="Orientation", visible=
|
| 313 |
-
quality_opt = gr.Dropdown(choices=["Preview (360p)", "480p", "720p", "1080p", "4k"], value="Preview (360p)", label="Quality", visible=
|
| 314 |
-
timeout_input = gr.Number(label="Render Timeout (seconds)", value=60, visible=
|
| 315 |
-
preview_speed_factor_input = gr.Number(label="Preview Speed Factor", value=0.5, visible=
|
| 316 |
render_btn = gr.Button("Render", variant="primary")
|
| 317 |
with gr.Column(scale=1):
|
| 318 |
video_output = gr.Video(label="Result")
|
| 319 |
status_output = gr.Textbox(label="Status/Logs")
|
| 320 |
-
fix_btn_output = gr.Button("Fix Error & Re-render", variant="stop", visible=
|
| 321 |
|
| 322 |
render_btn.click(
|
| 323 |
fn=render_video_from_code,
|
|
|
|
| 308 |
with gr.Tab("🎬 Manim Video Renderer"):
|
| 309 |
with gr.Row():
|
| 310 |
with gr.Column(scale=1):
|
| 311 |
+
code_input = gr.Code(label="Python Code", language="python", value=DEFAULT_CODE, visible=False)
|
| 312 |
+
orientation_opt = gr.Radio(choices=["Landscape (16:9)", "Portrait (9:16)"], value="Portrait (9:16)", label="Orientation", visible=False)
|
| 313 |
+
quality_opt = gr.Dropdown(choices=["Preview (360p)", "480p", "720p", "1080p", "4k"], value="Preview (360p)", label="Quality", visible=False)
|
| 314 |
+
timeout_input = gr.Number(label="Render Timeout (seconds)", value=60, visible=False)
|
| 315 |
+
preview_speed_factor_input = gr.Number(label="Preview Speed Factor", value=0.5, visible=False)
|
| 316 |
render_btn = gr.Button("Render", variant="primary")
|
| 317 |
with gr.Column(scale=1):
|
| 318 |
video_output = gr.Video(label="Result")
|
| 319 |
status_output = gr.Textbox(label="Status/Logs")
|
| 320 |
+
fix_btn_output = gr.Button("Fix Error & Re-render", variant="stop", visible=False)
|
| 321 |
|
| 322 |
render_btn.click(
|
| 323 |
fn=render_video_from_code,
|