Spaces:
Sleeping
Sleeping
Tom
commited on
Commit
·
7d6fc0e
1
Parent(s):
c04ece2
updated
Browse files
app.py
CHANGED
@@ -351,7 +351,13 @@ def gradio_wrapper(file):
|
|
351 |
graphs, tables = perform_comprehensive_analysis(df)
|
352 |
|
353 |
# Convert tables to a list of strings for easier display
|
354 |
-
table_outputs = [
|
|
|
|
|
|
|
|
|
|
|
|
|
355 |
|
356 |
return [graphs] + table_outputs
|
357 |
|
|
|
351 |
graphs, tables = perform_comprehensive_analysis(df)
|
352 |
|
353 |
# Convert tables to a list of strings for easier display
|
354 |
+
table_outputs = [
|
355 |
+
f"### {k}\n```\n{v}\n```" for k, v in tables.items()
|
356 |
+
]
|
357 |
+
|
358 |
+
# Ensure we have exactly 7 table outputs (plus the gallery of graphs)
|
359 |
+
while len(table_outputs) < 7:
|
360 |
+
table_outputs.append("No data available for this section.")
|
361 |
|
362 |
return [graphs] + table_outputs
|
363 |
|