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
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:
parent
19a86e2a67
commit
557c46f632
|
|
@ -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"
|
||||
"Performance Analysis Error",
|
||||
f"Could not analyze ONNX model performance: {str(e)}",
|
||||
"Check the server logs for more details",
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user