dhhd255 commited on
Commit
f5692b5
1 Parent(s): 56a867c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -17
app.py CHANGED
@@ -9,7 +9,7 @@ import streamlit as st
9
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
10
 
11
  # Load the trained model from the Hugging Face Hub
12
- model = AutoModel.from_pretrained('dhhd255/parkinsons_20epochs')
13
 
14
  # Move the model to the device
15
  model = model.to(device)
@@ -31,19 +31,7 @@ st.markdown("""
31
  .parkinsons {
32
  color: #C30000;
33
  }
34
- .caption_c{
35
- position: relative;
36
- display: flex;
37
- flex-directon: column;
38
- align-items: center;
39
- top: calc(99vh - 370px);
40
- }
41
- .caption {
42
-
43
- text-align: center;
44
- color: #646464;
45
- font-size: 14px;
46
- }
47
  </style>
48
  """, unsafe_allow_html=True)
49
 
@@ -83,6 +71,3 @@ if uploaded_file is not None:
83
  else:
84
  col2.markdown('<span class="result healthy">Predicted class: Healthy</span>', unsafe_allow_html=True)
85
  col2.caption(f'{confidence*100:.0f}% sure')
86
-
87
- # Add a caption at the bottom of the page
88
- st.markdown('<div class="caption_c"><p class="caption">Made with love by Jayant</p></div>', unsafe_allow_html=True)
 
9
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
10
 
11
  # Load the trained model from the Hugging Face Hub
12
+ model = AutoModel.from_pretrained('dhhd255/EfficientNet_ParkinsonsPred')
13
 
14
  # Move the model to the device
15
  model = model.to(device)
 
31
  .parkinsons {
32
  color: #C30000;
33
  }
34
+
 
 
 
 
 
 
 
 
 
 
 
 
35
  </style>
36
  """, unsafe_allow_html=True)
37
 
 
71
  else:
72
  col2.markdown('<span class="result healthy">Predicted class: Healthy</span>', unsafe_allow_html=True)
73
  col2.caption(f'{confidence*100:.0f}% sure')