Spaces:
Build error
Build error
Commit
·
2814195
1
Parent(s):
33632ae
updates
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ if "draw" not in st.session_state:
|
|
| 47 |
st.session_state["draw"] = False
|
| 48 |
|
| 49 |
def patch(ij):
|
| 50 |
-
st.write(ij)
|
| 51 |
immg=ij//(gridsize**2)
|
| 52 |
p=ij%(gridsize**2)
|
| 53 |
|
|
@@ -55,7 +55,7 @@ def patch(ij):
|
|
| 55 |
|
| 56 |
y=p//gridsize
|
| 57 |
x=p%gridsize
|
| 58 |
-
imc=imm.crop((x*patch_size,y*patch_size,(x+
|
| 59 |
return imc
|
| 60 |
|
| 61 |
if "sideimg" not in st.session_state:
|
|
|
|
| 47 |
st.session_state["draw"] = False
|
| 48 |
|
| 49 |
def patch(ij):
|
| 50 |
+
#st.write(ij)
|
| 51 |
immg=ij//(gridsize**2)
|
| 52 |
p=ij%(gridsize**2)
|
| 53 |
|
|
|
|
| 55 |
|
| 56 |
y=p//gridsize
|
| 57 |
x=p%gridsize
|
| 58 |
+
imc=imm.crop(((x-1)*patch_size,(y-1)*patch_size,(x+2)*patch_size,(y+2)*patch_size))
|
| 59 |
return imc
|
| 60 |
|
| 61 |
if "sideimg" not in st.session_state:
|