Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -309,9 +309,8 @@ def render_tab_content(tab):
|
|
309 |
], className="p-3"),
|
310 |
], className="border rounded bg-white shadow-sm")
|
311 |
elif tab == "lance":
|
312 |
-
|
313 |
-
|
314 |
-
tables = manager.list_tables()
|
315 |
return html.Div([
|
316 |
html.H5("From LanceDB", className="mb-3"),
|
317 |
html.Div([
|
@@ -325,7 +324,6 @@ def render_tab_content(tab):
|
|
325 |
dbc.Button("Drop Table", id="drop-data-db", color="danger", size="sm"),
|
326 |
]) if tables else html.P("No tables available in LanceDB", className="text-muted"),
|
327 |
], className="border rounded bg-white shadow-sm p-3")
|
328 |
-
])
|
329 |
|
330 |
return html.Div("Invalid tab selected.")
|
331 |
|
|
|
309 |
], className="p-3"),
|
310 |
], className="border rounded bg-white shadow-sm")
|
311 |
elif tab == "lance":
|
312 |
+
# Get tables at runtime
|
313 |
+
tables = manager.list_tables()
|
|
|
314 |
return html.Div([
|
315 |
html.H5("From LanceDB", className="mb-3"),
|
316 |
html.Div([
|
|
|
324 |
dbc.Button("Drop Table", id="drop-data-db", color="danger", size="sm"),
|
325 |
]) if tables else html.P("No tables available in LanceDB", className="text-muted"),
|
326 |
], className="border rounded bg-white shadow-sm p-3")
|
|
|
327 |
|
328 |
return html.Div("Invalid tab selected.")
|
329 |
|