Spaces:
Sleeping
Sleeping
File size: 469 Bytes
f58afc8 0854d0c f58afc8 4cc2bc5 f58afc8 be6f465 396a9b5 626e255 be6f465 626e255 0854d0c 626e255 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from fasthtml_hf import setup_hf_backup
from fasthtml.common import *
custom_css_link = Link(rel="stylesheet", href="styles.css")
app, rt = fast_app(hdrs=(custom_css_link,))
@rt('/')
def home():
return Title("Digit Drawer"), Main(
H1("Digit Drawer"),
Div(id="canvasContainer"),
P("Probability: --", id="probability"),
Button("Clear", id="clearButton"),
cls="container" # Add this class
)
setup_hf_backup(app)
serve() |