Update app.py
Browse files
app.py
CHANGED
@@ -66,20 +66,28 @@ app.layout = dbc.Container([
|
|
66 |
},
|
67 |
multiple=True
|
68 |
),
|
69 |
-
html.Div(
|
|
|
|
|
|
|
70 |
html.Hr(),
|
71 |
html.Div([
|
72 |
dbc.Button(
|
73 |
matrix_type,
|
74 |
-
id=
|
75 |
-
color="
|
76 |
-
className="mb-2 w-100",
|
77 |
-
style={
|
|
|
|
|
|
|
|
|
|
|
78 |
) for matrix_type in matrix_types.keys()
|
79 |
-
])
|
80 |
], width=3),
|
81 |
dbc.Col([
|
82 |
-
html.Div(style={"height": "20px"}), #
|
83 |
dcc.Loading(
|
84 |
id="loading-indicator",
|
85 |
type="dot",
|
@@ -89,7 +97,7 @@ app.layout = dbc.Container([
|
|
89 |
dbc.Button("Download Matrix", id="btn-download", color="success", className="mt-3"),
|
90 |
dcc.Download(id="download-matrix"),
|
91 |
html.Hr(),
|
92 |
-
html.Div(style={"height": "20px"}), #
|
93 |
dcc.Loading(
|
94 |
id="chat-loading",
|
95 |
type="dot",
|
@@ -100,7 +108,10 @@ app.layout = dbc.Container([
|
|
100 |
]
|
101 |
)
|
102 |
], width=9)
|
103 |
-
])
|
|
|
|
|
|
|
104 |
], fluid=True)
|
105 |
|
106 |
def parse_file_content(contents, filename):
|
|
|
66 |
},
|
67 |
multiple=True
|
68 |
),
|
69 |
+
html.Div([
|
70 |
+
html.H5("Uploaded Files"),
|
71 |
+
dbc.ListGroup(id='file-list')
|
72 |
+
], className="mt-3"),
|
73 |
html.Hr(),
|
74 |
html.Div([
|
75 |
dbc.Button(
|
76 |
matrix_type,
|
77 |
+
id={'type': 'matrix-button', 'index': matrix_type},
|
78 |
+
color="link",
|
79 |
+
className="mb-2 w-100 text-left",
|
80 |
+
style={
|
81 |
+
'textAlign': 'left',
|
82 |
+
'textDecoration': 'none',
|
83 |
+
'padding': '0.375rem 0.75rem',
|
84 |
+
'transition': 'background-color 0.3s'
|
85 |
+
}
|
86 |
) for matrix_type in matrix_types.keys()
|
87 |
+
], className="left-buttons-container")
|
88 |
], width=3),
|
89 |
dbc.Col([
|
90 |
+
html.Div(style={"height": "20px"}), # Small gap
|
91 |
dcc.Loading(
|
92 |
id="loading-indicator",
|
93 |
type="dot",
|
|
|
97 |
dbc.Button("Download Matrix", id="btn-download", color="success", className="mt-3"),
|
98 |
dcc.Download(id="download-matrix"),
|
99 |
html.Hr(),
|
100 |
+
html.Div(style={"height": "20px"}), # Small gap
|
101 |
dcc.Loading(
|
102 |
id="chat-loading",
|
103 |
type="dot",
|
|
|
108 |
]
|
109 |
)
|
110 |
], width=9)
|
111 |
+
]),
|
112 |
+
html.Div(id='uploaded-files-state', style={'display': 'none'}),
|
113 |
+
dcc.Store(id='matrix-type-store'),
|
114 |
+
html.Div(id='matrix-button-clicks', style={'display': 'none'})
|
115 |
], fluid=True)
|
116 |
|
117 |
def parse_file_content(contents, filename):
|