amgad59 commited on
Commit
10ef2bf
·
1 Parent(s): 9ade26e

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +2 -3
run.py CHANGED
@@ -22,8 +22,7 @@ def fake_gan():
22
  ]
23
  return example1
24
 
25
- #out = gr.Image(type="pil", label="Output Image")
26
- out1 = gr.outputs.Image(type="pil")
27
  with gr.Blocks() as demo:
28
  with gr.Column(variant="panel"):
29
  with gr.Row(variant="compact"):
@@ -41,7 +40,7 @@ with gr.Blocks() as demo:
41
  label="Generated images", show_label=False, elem_id="gallery"
42
  ).style(grid=[2], height="auto")
43
 
44
- btn.click(fake_gan, None, out1,api_name='testing')
45
 
46
  if __name__ == "__main__":
47
  demo.launch()
 
22
  ]
23
  return example1
24
 
25
+ #out = gr.Image(type="pil", label="Output Image")
 
26
  with gr.Blocks() as demo:
27
  with gr.Column(variant="panel"):
28
  with gr.Row(variant="compact"):
 
40
  label="Generated images", show_label=False, elem_id="gallery"
41
  ).style(grid=[2], height="auto")
42
 
43
+ btn.click(fake_gan, None, gr.outputs.Image(type="pil"),api_name='testing')
44
 
45
  if __name__ == "__main__":
46
  demo.launch()