Spaces:
Sleeping
Sleeping
Deepa Shalini commited on
Commit ·
6a10045
1
Parent(s): 509b6df
csv files supported tooltip display
Browse files
app.py
CHANGED
|
@@ -127,21 +127,28 @@ app.layout = dmc.MantineProvider(
|
|
| 127 |
[
|
| 128 |
html.Div(
|
| 129 |
[
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
),
|
| 146 |
html.Div(id="file-name-display", style={"fontSize": "12px", "color": "#475467", "marginTop": "8px"})
|
| 147 |
],
|
|
|
|
| 127 |
[
|
| 128 |
html.Div(
|
| 129 |
[
|
| 130 |
+
dmc.Tooltip(
|
| 131 |
+
label="Only CSV files are supported",
|
| 132 |
+
position="right",
|
| 133 |
+
withArrow=True,
|
| 134 |
+
children=[
|
| 135 |
+
dcc.Upload(
|
| 136 |
+
id="upload-data",
|
| 137 |
+
children=html.Button(
|
| 138 |
+
"Choose file",
|
| 139 |
+
className="pickBtn",
|
| 140 |
+
type="button",
|
| 141 |
+
style={
|
| 142 |
+
"height": "40px",
|
| 143 |
+
"padding": "0 20px",
|
| 144 |
+
"minWidth": "120px",
|
| 145 |
+
"fontFamily": "inherit"
|
| 146 |
+
}
|
| 147 |
+
),
|
| 148 |
+
accept=".csv",
|
| 149 |
+
multiple=False
|
| 150 |
+
)
|
| 151 |
+
]
|
| 152 |
),
|
| 153 |
html.Div(id="file-name-display", style={"fontSize": "12px", "color": "#475467", "marginTop": "8px"})
|
| 154 |
],
|