Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -597,9 +597,9 @@ class IssueManager:
|
|
597 |
if not filtered_counts:
|
598 |
fig = go.Figure()
|
599 |
fig.update_layout(title="Issue Severity Distribution", xaxis={"visible": False}, yaxis={"visible": False},
|
600 |
-
annotations=[{"text": "No issues to display.", "xref": "paper", "yref": "paper", "showarrow": False, "font": {"size": 16}],
|
601 |
plot_bgcolor='rgba(0,0,0,0)', paper_bgcolor='rgba(0,0,0,0)')
|
602 |
-
|
603 |
|
604 |
severities = list(filtered_counts.keys())
|
605 |
counts = list(filtered_counts.values())
|
|
|
597 |
if not filtered_counts:
|
598 |
fig = go.Figure()
|
599 |
fig.update_layout(title="Issue Severity Distribution", xaxis={"visible": False}, yaxis={"visible": False},
|
600 |
+
annotations=[{"text": "No issues to display.", "xref": "paper", "yref": "paper", "showarrow": False, "font": {"size": 16}}], # Removed the extra }
|
601 |
plot_bgcolor='rgba(0,0,0,0)', paper_bgcolor='rgba(0,0,0,0)')
|
602 |
+
return fig
|
603 |
|
604 |
severities = list(filtered_counts.keys())
|
605 |
counts = list(filtered_counts.values())
|