amgad59 commited on
Commit
9699ca5
·
1 Parent(s): d5768ef

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +2 -2
run.py CHANGED
@@ -17,7 +17,7 @@ def fake_gan():
17
  "https://images.unsplash.com/photo-1601412436009-d964bd02edbc?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=464&q=80",
18
  ]
19
  ), f"label {i}" if i != 0 else "label" * 50)
20
- for i in range(3)
21
  ]
22
  return images
23
 
@@ -37,7 +37,7 @@ with gr.Blocks() as demo:
37
 
38
  gallery = gr.Gallery(
39
  label="Generated images", show_label=False, elem_id="gallery"
40
- ).style(grid=[2], height="auto")
41
 
42
  btn.click(fake_gan, None, gallery,api_name="testing")
43
 
 
17
  "https://images.unsplash.com/photo-1601412436009-d964bd02edbc?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=464&q=80",
18
  ]
19
  ), f"label {i}" if i != 0 else "label" * 50)
20
+ for i in range(1)
21
  ]
22
  return images
23
 
 
37
 
38
  gallery = gr.Gallery(
39
  label="Generated images", show_label=False, elem_id="gallery"
40
+ ).style(grid=[0], height="auto")
41
 
42
  btn.click(fake_gan, None, gallery,api_name="testing")
43