awacke1 commited on
Commit
3e3cb70
Β·
verified Β·
1 Parent(s): e43b354

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
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: