Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,12 +23,13 @@ def render_model(blend_file):
|
|
23 |
subprocess.run(render_command.split())
|
24 |
return output_file
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
23 |
subprocess.run(render_command.split())
|
24 |
return output_file
|
25 |
|
26 |
+
def render_interface():
|
27 |
+
with gr.Interface(
|
28 |
+
fn=render_model,
|
29 |
+
inputs=gr.inputs.File(label="Upload your .blend file"),
|
30 |
+
outputs=gr.outputs.Image(label="Rendered Image")
|
31 |
+
) as iface:
|
32 |
+
iface.launch()
|
33 |
+
|
34 |
+
if __name__ == "__main__":
|
35 |
+
render_interface()
|