Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -185,15 +185,15 @@ class GenScene(Scene):
|
|
| 185 |
|
| 186 |
with gr.Blocks(title="Manim Render API") as demo:
|
| 187 |
# Hidden components to define the API signature
|
| 188 |
-
code_input = gr.Code(label="Python Code", language="python", value=DEFAULT_CODE)
|
| 189 |
-
orientation_opt = gr.Radio(choices=["Landscape (16:9)", "Portrait (9:16)"], value="Portrait (9:16)", label="Orientation")
|
| 190 |
-
quality_opt = gr.Dropdown(choices=["Preview (360p)", "480p", "720p", "1080p", "4k"], value="Preview (360p)", label="Quality")
|
| 191 |
-
timeout_input = gr.Number(label="Render Timeout (seconds)", value=60)
|
| 192 |
-
preview_speed_factor_input = gr.Number(label="Preview Speed Factor", value=0.5)
|
| 193 |
|
| 194 |
video_output = gr.Video(label="Result")
|
| 195 |
status_output = gr.Textbox(label="Status/Logs")
|
| 196 |
-
fix_btn_output = gr.Button("Fix Error & Re-render", variant="stop")
|
| 197 |
|
| 198 |
render_btn = gr.Button("Render")
|
| 199 |
|
|
|
|
| 185 |
|
| 186 |
with gr.Blocks(title="Manim Render API") as demo:
|
| 187 |
# Hidden components to define the API signature
|
| 188 |
+
code_input = gr.Code(label="Python Code", language="python", value=DEFAULT_CODE,visible=False)
|
| 189 |
+
orientation_opt = gr.Radio(choices=["Landscape (16:9)", "Portrait (9:16)"], value="Portrait (9:16)", label="Orientation",visible=False)
|
| 190 |
+
quality_opt = gr.Dropdown(choices=["Preview (360p)", "480p", "720p", "1080p", "4k"], value="Preview (360p)", label="Quality", visible=False)
|
| 191 |
+
timeout_input = gr.Number(label="Render Timeout (seconds)", value=60, visible=False)
|
| 192 |
+
preview_speed_factor_input = gr.Number(label="Preview Speed Factor", value=0.5,visible=False)
|
| 193 |
|
| 194 |
video_output = gr.Video(label="Result")
|
| 195 |
status_output = gr.Textbox(label="Status/Logs")
|
| 196 |
+
fix_btn_output = gr.Button("Fix Error & Re-render", variant="stop",visible=False)
|
| 197 |
|
| 198 |
render_btn = gr.Button("Render")
|
| 199 |
|