dhhd255 commited on
Commit
7aebb3f
·
1 Parent(s): 0c9e4f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -1
app.py CHANGED
@@ -14,7 +14,7 @@ model = AutoModel.from_pretrained('dhhd255/parkinsons_pred0.1')
14
  # Move the model to the device
15
  model = model.to(device)
16
 
17
- # Add custom CSS to use the Inter font, define custom classes for healthy and parkinsons results, and increase the font size and make the text bold
18
  st.markdown("""
19
  <style>
20
  @import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
@@ -31,11 +31,28 @@ st.markdown("""
31
  .parkinsons {
32
  color: #C30000;
33
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  </style>
35
  """, unsafe_allow_html=True)
36
 
37
  st.title("Parkinson's Disease Prediction")
38
  st.caption('Made by Jayant')
 
39
  uploaded_file = st.file_uploader("Upload your :blue[Spiral] drawing here", type=["png", "jpg", "jpeg"])
40
  if uploaded_file is not None:
41
  col1, col2 = st.columns(2)
@@ -67,3 +84,6 @@ if uploaded_file is not None:
67
  col2.markdown('<span class="result parkinsons">Predicted class: Parkinson\'s</span>', unsafe_allow_html=True)
68
  else:
69
  col2.markdown('<span class="result healthy">Predicted class: Healthy</span>', unsafe_allow_html=True)
 
 
 
 
14
  # Move the model to the device
15
  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');
 
31
  .parkinsons {
32
  color: #C30000;
33
  }
34
+ .footer {
35
+ position: fixed;
36
+ left: 0;
37
+ bottom: 0;
38
+ width: 200px;
39
+ text-align: center;
40
+ padding: 10px;
41
+ }
42
+ :root[data-theme="light"] .footer {
43
+ background-color: black;
44
+ color: white;
45
+ }
46
+ :root[data-theme="dark"] .footer {
47
+ background-color: white;
48
+ color: black;
49
+ }
50
  </style>
51
  """, unsafe_allow_html=True)
52
 
53
  st.title("Parkinson's Disease Prediction")
54
  st.caption('Made by Jayant')
55
+
56
  uploaded_file = st.file_uploader("Upload your :blue[Spiral] drawing here", type=["png", "jpg", "jpeg"])
57
  if uploaded_file is not None:
58
  col1, col2 = st.columns(2)
 
84
  col2.markdown('<span class="result parkinsons">Predicted class: Parkinson\'s</span>', unsafe_allow_html=True)
85
  else:
86
  col2.markdown('<span class="result healthy">Predicted class: Healthy</span>', unsafe_allow_html=True)
87
+
88
+ # Add the footer
89
+ st.markdown('<div class="footer">Hello</div>', unsafe_allow_html=True)