Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -160,6 +160,15 @@ def analyze_and_generate_graph(progress=gr.Progress()):
|
|
160 |
|
161 |
return summary, graph_file
|
162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
# π Gradio Interface: Where the Magic Happens π
|
164 |
|
165 |
with gr.Blocks() as demo:
|
|
|
160 |
|
161 |
return summary, graph_file
|
162 |
|
163 |
+
# π Define load_all_data Properly π
|
164 |
+
|
165 |
+
def load_all_data():
|
166 |
+
"""Load data for all categories and prepare for display."""
|
167 |
+
top_count, top_html = update_display("top")
|
168 |
+
new_count, new_html = update_display("latest")
|
169 |
+
greatest_count, greatest_html = update_display("greatest")
|
170 |
+
return top_count, top_html, new_count, new_html, greatest_count, greatest_html
|
171 |
+
|
172 |
# π Gradio Interface: Where the Magic Happens π
|
173 |
|
174 |
with gr.Blocks() as demo:
|