Spaces:
Runtime error
Runtime error
Logan Zoellner
commited on
Commit
•
9ed680d
1
Parent(s):
8dd2b6f
okay, that was dumb
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ with demo:
|
|
31 |
b1 = gr.Button("generate model")
|
32 |
|
33 |
with gr.Row():
|
34 |
-
seed=gr.Number(default=0, label='Seed')
|
35 |
psi=gr.Slider(0, 2, step=0.05, default=0.7, label='Truncation psi')
|
36 |
#outputImage = gr.Image(label="portrait",type="filepath", shape=(256,256))
|
37 |
output_image = gr.Image(label="portrait",type="filepath", shape=(256,256))
|
@@ -39,8 +39,7 @@ with demo:
|
|
39 |
file= gr.File(label="Download 3D Model")
|
40 |
|
41 |
|
42 |
-
b0.click(
|
43 |
-
|
44 |
-
#b1.click(generate_model, inputs=outputImage, outputs=[model,file])
|
45 |
|
46 |
demo.launch(enable_queue=True, debug=True)
|
|
|
31 |
b1 = gr.Button("generate model")
|
32 |
|
33 |
with gr.Row():
|
34 |
+
seed=gr.Number(default=0, label='Seed')
|
35 |
psi=gr.Slider(0, 2, step=0.05, default=0.7, label='Truncation psi')
|
36 |
#outputImage = gr.Image(label="portrait",type="filepath", shape=(256,256))
|
37 |
output_image = gr.Image(label="portrait",type="filepath", shape=(256,256))
|
|
|
39 |
file= gr.File(label="Download 3D Model")
|
40 |
|
41 |
|
42 |
+
b0.click(generate_image,inputs=[seed,psi],outputs=output_image)
|
43 |
+
b1.click(generate_model, inputs=output_image, outputs=[model,file])
|
|
|
44 |
|
45 |
demo.launch(enable_queue=True, debug=True)
|