Plsek commited on
Commit
6fa9f7b
·
1 Parent(s): a9823fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -89,11 +89,13 @@ if uploaded_file is not None:
89
 
90
  with col2:
91
  st.button('Detect cavities')
92
- data, wcs = cut(np.log10(data+1), wcs, scale=scale)
93
 
 
 
94
  y_pred = 0
95
  for j in [0,1,2,3]:
96
- rotated = np.rot90(, j)
97
  pred = model.predict(rotated.reshape(1, 128, 128, 1)).reshape(128 ,128)
98
  pred = np.rot90(pred, -j)
99
  y_pred += pred / 4
 
89
 
90
  with col2:
91
  st.button('Detect cavities')
92
+ data, wcs = cut(data, wcs, scale=scale)
93
 
94
+ image = np.log10(data+1)
95
+
96
  y_pred = 0
97
  for j in [0,1,2,3]:
98
+ rotated = np.rot90(image, j)
99
  pred = model.predict(rotated.reshape(1, 128, 128, 1)).reshape(128 ,128)
100
  pred = np.rot90(pred, -j)
101
  y_pred += pred / 4