Spaces:
Runtime error
Runtime error
Setup canvas
Browse files- index.html +4 -4
index.html
CHANGED
@@ -137,9 +137,9 @@ async def draw_canvas_func(event):
|
|
137 |
height=app.querySelector("#canvas_height input").value
|
138 |
selection_size=app.querySelector("#selection_size input").value
|
139 |
except:
|
140 |
-
width=
|
141 |
-
height=
|
142 |
-
selection_size=
|
143 |
document.querySelector("#container").style.width = f"{width}px"
|
144 |
document.querySelector("#container").style.height= f"{height}px"
|
145 |
canvas=InfCanvas(int(width),int(height),selection_size=int(selection_size))
|
@@ -403,7 +403,7 @@ window.addEventListener("message",create_proxy(message_func))
|
|
403 |
import asyncio
|
404 |
|
405 |
_ = await asyncio.gather(
|
406 |
-
setup_func()
|
407 |
)
|
408 |
</py-script>
|
409 |
|
|
|
137 |
height=app.querySelector("#canvas_height input").value
|
138 |
selection_size=app.querySelector("#selection_size input").value
|
139 |
except:
|
140 |
+
width=1500
|
141 |
+
height=600
|
142 |
+
selection_size=256
|
143 |
document.querySelector("#container").style.width = f"{width}px"
|
144 |
document.querySelector("#container").style.height= f"{height}px"
|
145 |
canvas=InfCanvas(int(width),int(height),selection_size=int(selection_size))
|
|
|
403 |
import asyncio
|
404 |
|
405 |
_ = await asyncio.gather(
|
406 |
+
setup_func(),draw_canvas_func()
|
407 |
)
|
408 |
</py-script>
|
409 |
|