forked from soumikbaksi18/aixblock-ai-dev-platform-public
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (26 loc) · 686 Bytes
/
main.py
File metadata and controls
29 lines (26 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import dash
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
df = pd.read_csv("export/vuln_scores.csv")
app = dash.Dash(__name__)
app.layout = html.Div([
html.H1("Scoring podatności CVSS + AI"),
dcc.Graph(
figure={
'data': [
{
'x': df["id"],
'y': df["combined_score"],
'type': 'bar',
'name': 'Combined Score'
}
],
'layout': {
'title': 'Wyniki scoringu dla podatności'
}
}
)
])
if __name__ == '__main__':
app.run_server(debug=True)