Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,34 +16,41 @@ model = model.to(device)
|
|
16 |
|
17 |
# Add custom CSS to use the Inter font, define custom classes for healthy and parkinsons results, increase the font size, make the text bold, and define the footer styles
|
18 |
st.markdown("""
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
""", unsafe_allow_html=True)
|
48 |
|
49 |
st.title("Parkinson's Disease Prediction")
|
@@ -85,4 +92,4 @@ if uploaded_file is not None:
|
|
85 |
col2.caption(f'{confidence*100:.0f}% sure')
|
86 |
|
87 |
# Add the footer
|
88 |
-
st.markdown('<div class="
|
|
|
16 |
|
17 |
# Add custom CSS to use the Inter font, define custom classes for healthy and parkinsons results, increase the font size, make the text bold, and define the footer styles
|
18 |
st.markdown("""
|
19 |
+
<style>
|
20 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
|
21 |
+
body {
|
22 |
+
font-family: 'Inter', sans-serif;
|
23 |
+
}
|
24 |
+
.result {
|
25 |
+
font-size: 24px;
|
26 |
+
font-weight: bold;
|
27 |
+
}
|
28 |
+
.healthy {
|
29 |
+
color: #007E3F;
|
30 |
+
}
|
31 |
+
.parkinsons {
|
32 |
+
color: #C30000;
|
33 |
+
}
|
34 |
+
a:link , a:visited{
|
35 |
+
color: blue;
|
36 |
+
background-color: transparent;
|
37 |
+
text-decoration: underline;
|
38 |
+
}
|
39 |
+
a:hover, a:active {
|
40 |
+
color: red;
|
41 |
+
background-color: transparent;
|
42 |
+
text-decoration: underline;
|
43 |
+
}
|
44 |
+
.footer {
|
45 |
+
position: fixed;
|
46 |
+
left: 0;
|
47 |
+
bottom: 0;
|
48 |
+
width: 100%;
|
49 |
+
background-color: white;
|
50 |
+
color: black;
|
51 |
+
text-align: center;
|
52 |
+
}
|
53 |
+
</style>
|
54 |
""", unsafe_allow_html=True)
|
55 |
|
56 |
st.title("Parkinson's Disease Prediction")
|
|
|
92 |
col2.caption(f'{confidence*100:.0f}% sure')
|
93 |
|
94 |
# Add the footer
|
95 |
+
st.markdown('<div class="footer"><p>Developed with ❤ by <a style=\'display:block; text-align:center;\' href="https://www.google.com/" target="_blank">Jayant Pant</a></p></div>', unsafe_allow_html=True)
|