format fix
All checks were successful
Build Sphinx Docs Set / Build Docs (pull_request) Successful in 33s
Test with tox / Test with tox (3.11) (pull_request) Successful in 28s
Test with tox / Test with tox (3.10) (pull_request) Successful in 41s
Build Project / Build Project (3.10) (pull_request) Successful in 50s
Build Project / Build Project (3.12) (pull_request) Successful in 48s
Build Project / Build Project (3.11) (pull_request) Successful in 51s
Test with tox / Test with tox (3.12) (pull_request) Successful in 27s

This commit is contained in:
ben 2025-11-19 16:16:17 -05:00
parent 19a86e2a67
commit 557c46f632

View File

@ -581,7 +581,9 @@ def performance_metrics(file_path: Path) -> go.Figure:
gauge={
"axis": {"range": [0, 100]},
"bar": {
"color": "#ef4444" if complexity_score > 70 else "#f59e0b" if complexity_score > 40 else "#10b981"
"color": (
"#ef4444" if complexity_score > 70 else "#f59e0b" if complexity_score > 40 else "#10b981"
)
},
"steps": [
{"range": [0, 40], "color": "rgba(16, 185, 129, 0.12)"},
@ -623,10 +625,11 @@ def performance_metrics(file_path: Path) -> go.Figure:
except Exception as e:
import traceback
error_details = f"Error: {str(e)}\n\nTraceback: {traceback.format_exc()}"
print(f"[ONNX Performance Metrics] Error: {error_details}")
return create_styled_error_figure(
"Performance Analysis Error",
f"Could not analyze ONNX model performance: {str(e)}",
"Check the server logs for more details"
"Check the server logs for more details",
)