Logan Zoellner commited on
Commit
7c0b5ed
1 Parent(s): a3da63c

still not working

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -31,12 +31,13 @@ with demo:
31
  with gr.Row():
32
  seed=gr.Number(default=0, label='Seed'),
33
  psi=gr.Slider(0, 2, step=0.05, default=0.7, label='Truncation psi')
34
- outputImage = gr.Image(label="portrait",type="filepath", shape=(256,256))
 
35
  model = gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], label="3D Model"),
36
  file= gr.File(label="Download 3D Model")
37
 
38
 
39
- b0.click(generate_image,inputs=[seed,psi],outputs=outputImage)
40
- b1.click(generate_model, inputs=outputImage, outputs=[model,file])
41
 
42
  demo.launch(enable_queue=True, debug=True)
 
31
  with gr.Row():
32
  seed=gr.Number(default=0, label='Seed'),
33
  psi=gr.Slider(0, 2, step=0.05, default=0.7, label='Truncation psi')
34
+ #outputImage = gr.Image(label="portrait",type="filepath", shape=(256,256))
35
+ output_image = gr.Image(label="portrait",type="filepath", shape=(256,256))
36
  model = gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], label="3D Model"),
37
  file= gr.File(label="Download 3D Model")
38
 
39
 
40
+ b0.click(generate_image,inputs=[seed,psi],outputs=output_image)
41
+ #b1.click(generate_model, inputs=outputImage, outputs=[model,file])
42
 
43
  demo.launch(enable_queue=True, debug=True)