Spaces:
Sleeping
Sleeping
vishalbakshi
commited on
deploy at 2024-08-24 21:15:59.464555
Browse files- main.py +2 -4
- styles.css +8 -1
main.py
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
from fasthtml_hf import setup_hf_backup
|
2 |
from fasthtml.common import *
|
3 |
-
#import io
|
4 |
-
#import base64
|
5 |
|
6 |
custom_css_link = Link(rel="stylesheet", href="styles.css")
|
7 |
|
8 |
-
app,rt = fast_app(hdrs=(custom_css_link))
|
9 |
|
10 |
@rt('/')
|
11 |
def home():
|
@@ -14,7 +12,7 @@ def home():
|
|
14 |
Div(id="canvasContainer"),
|
15 |
P("Probability: --", id="probability"),
|
16 |
Button("Clear", id="clearButton"),
|
17 |
-
#
|
18 |
)
|
19 |
|
20 |
setup_hf_backup(app)
|
|
|
1 |
from fasthtml_hf import setup_hf_backup
|
2 |
from fasthtml.common import *
|
|
|
|
|
3 |
|
4 |
custom_css_link = Link(rel="stylesheet", href="styles.css")
|
5 |
|
6 |
+
app, rt = fast_app(hdrs=(custom_css_link,))
|
7 |
|
8 |
@rt('/')
|
9 |
def home():
|
|
|
12 |
Div(id="canvasContainer"),
|
13 |
P("Probability: --", id="probability"),
|
14 |
Button("Clear", id="clearButton"),
|
15 |
+
cls="container" # Add this class
|
16 |
)
|
17 |
|
18 |
setup_hf_backup(app)
|
styles.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*
|
2 |
body {
|
3 |
display: flex;
|
4 |
justify-content: center;
|
@@ -8,4 +8,11 @@ body {
|
|
8 |
}
|
9 |
.container {
|
10 |
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
}
|
|
|
1 |
+
/* styles.css */
|
2 |
body {
|
3 |
display: flex;
|
4 |
justify-content: center;
|
|
|
8 |
}
|
9 |
.container {
|
10 |
text-align: center;
|
11 |
+
width: 100%; /* Ensure the container takes full width */
|
12 |
+
max-width: 600px; /* Adjust this value as needed */
|
13 |
+
}
|
14 |
+
#canvasContainer {
|
15 |
+
width: 100%;
|
16 |
+
display: flex;
|
17 |
+
justify-content: center;
|
18 |
}
|