dhhd255 commited on
Commit
80da5e3
·
1 Parent(s): 09526d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +36 -29
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
- <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
- .footer_wrapper{
35
- height: 100%;
36
- }
37
- .footer {
38
- position: absolute;
39
- bottom: 0;
40
- color:white;
41
- background-color: #141414;
42
- width: 100%;
43
- text-align: center;
44
- padding: 10px;
45
- }
46
- </style>
 
 
 
 
 
 
 
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="footer_wrapper"><div class="footer">Hello</div></div>', unsafe_allow_html=True)
 
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)