Omnibus commited on
Commit
79ad160
·
verified ·
1 Parent(s): 1b198f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -3,13 +3,7 @@ import gradio as gr
3
  def build(size=5):
4
  tot = size*size
5
  r=0
6
- while r<tot:
7
- ro=""
8
- for c in range(size):
9
- ro+=f' {tot-c-r}'
10
-
11
- print(ro)
12
- r+=size
13
 
14
  box=[x for x in range(tot)]
15
  box_cent=int(tot/2)
@@ -19,5 +13,13 @@ def build(size=5):
19
  num_h=0-1
20
  box_cent+=(num_h+num_v)
21
  print(box)
22
-
 
 
 
 
 
 
 
 
23
  build()
 
3
  def build(size=5):
4
  tot = size*size
5
  r=0
6
+
 
 
 
 
 
 
7
 
8
  box=[x for x in range(tot)]
9
  box_cent=int(tot/2)
 
13
  num_h=0-1
14
  box_cent+=(num_h+num_v)
15
  print(box)
16
+
17
+ while r<tot:
18
+ ro=""
19
+ for c in range(size):
20
+ ro+=f' {box[c+r]}'
21
+
22
+ print(ro)
23
+ r+=size
24
+
25
  build()