Update app.py
Browse files
app.py
CHANGED
|
@@ -149,8 +149,12 @@ def update_Weight_Precision(temp_precisions):
|
|
| 149 |
selected_precisions = [p for p in temp_precisions if p not in ["16bit", "32bit"]]
|
| 150 |
|
| 151 |
current_precision = list(set(selected_precisions))
|
|
|
|
|
|
|
| 152 |
if len(current_precision) > 1:
|
| 153 |
-
selected_dropdown_weight = 'All'
|
|
|
|
|
|
|
| 154 |
|
| 155 |
print('final', current_precision)
|
| 156 |
# Map selected_precisions to corresponding weights
|
|
@@ -441,11 +445,10 @@ def generate_spider_chart(df, selected_keys):
|
|
| 441 |
fig.update_layout(
|
| 442 |
polar=dict(
|
| 443 |
radialaxis=dict(
|
| 444 |
-
visible=
|
| 445 |
)),
|
| 446 |
-
showlegend=
|
| 447 |
)
|
| 448 |
-
fig['layout']['uirevision'] = 'removed'
|
| 449 |
|
| 450 |
return fig
|
| 451 |
|
|
|
|
| 149 |
selected_precisions = [p for p in temp_precisions if p not in ["16bit", "32bit"]]
|
| 150 |
|
| 151 |
current_precision = list(set(selected_precisions))
|
| 152 |
+
print('selected_dropdown_weight', selected_dropdown_weight)
|
| 153 |
+
|
| 154 |
if len(current_precision) > 1:
|
| 155 |
+
selected_dropdown_weight = 'All'
|
| 156 |
+
elif selected_dropdown_weight != 'All' and set(dtype_to_precision[selected_dropdown_weight]) != set(current_precision):
|
| 157 |
+
selected_dropdown_weight = 'All'
|
| 158 |
|
| 159 |
print('final', current_precision)
|
| 160 |
# Map selected_precisions to corresponding weights
|
|
|
|
| 445 |
fig.update_layout(
|
| 446 |
polar=dict(
|
| 447 |
radialaxis=dict(
|
| 448 |
+
visible=False,
|
| 449 |
)),
|
| 450 |
+
showlegend=False
|
| 451 |
)
|
|
|
|
| 452 |
|
| 453 |
return fig
|
| 454 |
|