amgad59 commited on
Commit
f0775c5
·
1 Parent(s): ef7be0f

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +2 -2
run.py CHANGED
@@ -5,7 +5,7 @@ import random
5
 
6
  import gradio as gr
7
 
8
- example1 = "examples/vermeer.jpg"
9
  example2 = "examples/matisse.jpg"
10
  def fake_gan():
11
  images = [
@@ -40,7 +40,7 @@ with gr.Blocks() as demo:
40
  label="Generated images", show_label=False, elem_id="gallery"
41
  ).style(grid=[2], height="auto")
42
 
43
- btn.click(fake_gan, None, outputs = [gr.outputs.Image(type="pil")],api_name='testing')
44
 
45
  if __name__ == "__main__":
46
  demo.launch()
 
5
 
6
  import gradio as gr
7
 
8
+ example1 = ["examples/vermeer.jpg","examples/matisse.jpg"]
9
  example2 = "examples/matisse.jpg"
10
  def fake_gan():
11
  images = [
 
40
  label="Generated images", show_label=False, elem_id="gallery"
41
  ).style(grid=[2], height="auto")
42
 
43
+ btn.click(fake_gan, None, outputs = [gr.outputs.Image(type="pil"),gr.outputs.Image(type="pil")],api_name='testing')
44
 
45
  if __name__ == "__main__":
46
  demo.launch()