Omnibus commited on
Commit
8ec8315
·
verified ·
1 Parent(s): 48c079b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import gradio as gr
 
2
 
3
  def build(size=5):
4
  tot = size*size
@@ -8,9 +9,9 @@ def build(size=5):
8
  box_o=[x for x in range(size)]
9
  for i in range(size):box.append(box_o)
10
  print(box)
11
- box_cent=int(len(box)/2)
12
  print(box_cent)
13
- cent=int(len(box_cent)/2)
14
  print(cent)
15
  print(box_cent[cent])
16
  num_h,num_v=0,0
 
1
  import gradio as gr
2
+ import math
3
 
4
  def build(size=5):
5
  tot = size*size
 
9
  box_o=[x for x in range(size)]
10
  for i in range(size):box.append(box_o)
11
  print(box)
12
+ box_cent=math.ceil(len(box)/2)
13
  print(box_cent)
14
+ cent=int(box_cent/2)
15
  print(cent)
16
  print(box_cent[cent])
17
  num_h,num_v=0,0