matrix / app.py
Omnibus's picture
Update app.py
af2e179 verified
raw
history blame
463 Bytes
import gradio as gr
def build(size=5):
tot = size*size
r=0
box=[b[x for x in range(size)]=b for b in range(tot)]
print(box)
box_cent=int(tot/2)
num_h,num_v=0,0
for i in range(1,tot):
box[box_cent]=i
num_h=0-1
box_cent+=(num_h+num_v)
print(box)
while r<tot:
ro=""
for c in range(size):
ro+=f' {box[c+r]}'
print(ro)
r+=size
build()