added a bit of error handling
Browse files
app_components/__pycache__/plots.cpython-313.pyc
DELETED
Binary file (11.2 kB)
|
|
app_components/plots.py
CHANGED
@@ -81,10 +81,14 @@ class PlotPanels(param.Parameterized):
|
|
81 |
Any times the URI changes, a class prediction is immediately.
|
82 |
Following this, the probability bar chart and model input heatmap are updated as well.
|
83 |
'''
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
|
|
|
|
|
|
|
|
88 |
|
89 |
def _update_preprocessed_tensor(self):
|
90 |
'''
|
@@ -170,7 +174,8 @@ class PlotPanels(param.Parameterized):
|
|
170 |
family = styles.FONTFAMILY)),
|
171 |
tickfont = dict(size = styles.FONTSIZES['plot_ticks'],
|
172 |
family = styles.FONTFAMILY),
|
173 |
-
|
|
|
174 |
gridcolor = styles.CLRS['prob_plot_grid']
|
175 |
)
|
176 |
fig.update_xaxes(
|
|
|
81 |
Any times the URI changes, a class prediction is immediately.
|
82 |
Following this, the probability bar chart and model input heatmap are updated as well.
|
83 |
'''
|
84 |
+
try:
|
85 |
+
self._update_preprocessed_tensor()
|
86 |
+
self._update_pred_txt()
|
87 |
+
self._update_img_plot()
|
88 |
+
self._update_prob_plot()
|
89 |
+
except Exception as e:
|
90 |
+
print(f'[Errored] {e}')
|
91 |
+
return
|
92 |
|
93 |
def _update_preprocessed_tensor(self):
|
94 |
'''
|
|
|
174 |
family = styles.FONTFAMILY)),
|
175 |
tickfont = dict(size = styles.FONTSIZES['plot_ticks'],
|
176 |
family = styles.FONTFAMILY),
|
177 |
+
ticks = 'outside', ticklen = 0,
|
178 |
+
tickvals = np.arange(0, 1.1, 0.1),
|
179 |
gridcolor = styles.CLRS['prob_plot_grid']
|
180 |
)
|
181 |
fig.update_xaxes(
|
app_utils/__pycache__/styles.cpython-313.pyc
DELETED
Binary file (1.31 kB)
|
|