mralamdari commited on
Commit
2d3ecc5
·
verified ·
1 Parent(s): 042092b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -16,7 +16,6 @@ sizes = [18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
16
  IMAGE_DIR = '/Img'
17
  root = os.path.dirname(__file__)
18
  shoes_data = pd.read_excel(os.path.join(root, 'Book1.xlsx'))
19
- # Read the shoe data from the Excel file
20
 
21
  def show_shoes(sizes, types, colors, shoelaces, genders):
22
  shoes_arr = []
@@ -53,11 +52,7 @@ demo = gr.Interface(
53
  gr.CheckboxGroup(shoelace_list, label="shoelaces", info="Where are they from?"),
54
  gr.CheckboxGroup(sex_list, label="genders", info="Where are they from?"),
55
  ],
56
- outputs=gr.Gallery(label="Generated Images", columns=[3]),
57
- examples=[
58
- [['46', '47'], ['بزرگسال مردانه'], ['سفید'], ['اسپرت'] , ['بند دار']],
59
- [['43', '44'], ['بزرگسال مردانه'], ['مشکی'], ['گوندارا', 'مجلسی'] , ['بند دار']],
60
- ]
61
  )
62
 
63
  demo.launch(share=True)
 
16
  IMAGE_DIR = '/Img'
17
  root = os.path.dirname(__file__)
18
  shoes_data = pd.read_excel(os.path.join(root, 'Book1.xlsx'))
 
19
 
20
  def show_shoes(sizes, types, colors, shoelaces, genders):
21
  shoes_arr = []
 
52
  gr.CheckboxGroup(shoelace_list, label="shoelaces", info="Where are they from?"),
53
  gr.CheckboxGroup(sex_list, label="genders", info="Where are they from?"),
54
  ],
55
+ outputs=gr.Gallery(label="Generated Images", columns=[2]),
 
 
 
 
56
  )
57
 
58
  demo.launch(share=True)