Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -157,7 +157,7 @@ class KidneyCNN(nn.Module):
|
|
157 |
|
158 |
|
159 |
if st.session_state.framework =="PyTorch":
|
160 |
-
st.session_state.model = torch.load('
|
161 |
st.session_state.model.eval()
|
162 |
print(type(st.session_state.model))
|
163 |
|
@@ -281,7 +281,7 @@ if st.session_state.framework == "PyTorch":
|
|
281 |
|
282 |
return prob_class_0, prob_class_1, probs
|
283 |
else:
|
284 |
-
logo_path = "
|
285 |
bg_color = "orange" # For example, a warm red/orange
|
286 |
bg_color_iv = "#FF5733" # For example, a warm red/orange
|
287 |
|
@@ -1382,7 +1382,7 @@ if page == "pome":
|
|
1382 |
if st.session_state.show_desc:
|
1383 |
# components.html(html_string) # JavaScript works
|
1384 |
# st.markdown(html_string, unsafe_allow_html=True)
|
1385 |
-
image_path = "
|
1386 |
|
1387 |
st.container()
|
1388 |
st.markdown(
|
|
|
157 |
|
158 |
|
159 |
if st.session_state.framework =="PyTorch":
|
160 |
+
st.session_state.model = torch.load('kidney_model .pth', map_location=torch.device('cpu'))
|
161 |
st.session_state.model.eval()
|
162 |
print(type(st.session_state.model))
|
163 |
|
|
|
281 |
|
282 |
return prob_class_0, prob_class_1, probs
|
283 |
else:
|
284 |
+
logo_path = "tensorflow.png"
|
285 |
bg_color = "orange" # For example, a warm red/orange
|
286 |
bg_color_iv = "#FF5733" # For example, a warm red/orange
|
287 |
|
|
|
1382 |
if st.session_state.show_desc:
|
1383 |
# components.html(html_string) # JavaScript works
|
1384 |
# st.markdown(html_string, unsafe_allow_html=True)
|
1385 |
+
image_path = "image.jpg"
|
1386 |
|
1387 |
st.container()
|
1388 |
st.markdown(
|