devendergarg14 commited on
Commit
41c110f
·
verified ·
1 Parent(s): 8ea7fe5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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=True)
312
- orientation_opt = gr.Radio(choices=["Landscape (16:9)", "Portrait (9:16)"], value="Portrait (9:16)", label="Orientation", visible=True)
313
- quality_opt = gr.Dropdown(choices=["Preview (360p)", "480p", "720p", "1080p", "4k"], value="Preview (360p)", label="Quality", visible=True)
314
- timeout_input = gr.Number(label="Render Timeout (seconds)", value=60, visible=True)
315
- preview_speed_factor_input = gr.Number(label="Preview Speed Factor", value=0.5, visible=True)
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=True)
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,