Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -366,8 +366,8 @@ class IssueManager:
|
|
366 |
logger.error("Repository URL and Hugging Face Token are required.")
|
367 |
# Return empty plot of the correct type for analytics
|
368 |
empty_fig = go.Figure()
|
369 |
-
empty_fig.update_layout(title="Issue Severity Distribution", xaxis={{"visible": False}, yaxis={{"visible": False},
|
370 |
-
annotations=[{{"text": "Scan needed.", "xref": "paper", "yref": "paper", "showarrow": False}],
|
371 |
plot_bgcolor='rgba(0,0,0,0)', paper_bgcolor='rgba(0,0,0,0)')
|
372 |
return [], empty_fig, "Error: Repository URL and Hugging Face Token are required.", empty_fig
|
373 |
|
|
|
366 |
logger.error("Repository URL and Hugging Face Token are required.")
|
367 |
# Return empty plot of the correct type for analytics
|
368 |
empty_fig = go.Figure()
|
369 |
+
empty_fig.update_layout(title="Issue Severity Distribution", xaxis={{"visible": False}}, yaxis={{"visible": False}}),
|
370 |
+
annotations=[{{"text": "Scan needed.", "xref": "paper", "yref": "paper", "showarrow": False}}],
|
371 |
plot_bgcolor='rgba(0,0,0,0)', paper_bgcolor='rgba(0,0,0,0)')
|
372 |
return [], empty_fig, "Error: Repository URL and Hugging Face Token are required.", empty_fig
|
373 |
|