lightmate commited on
Commit
186a3cb
Β·
verified Β·
1 Parent(s): a535254

v1 - dashboard

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -145,13 +145,10 @@ with gr.Blocks(css="""
145
 
146
  with gr.Tab("πŸ“Š Dashboard") as dashboard_tab:
147
  gr.Markdown("# πŸ“Š Verification Dashboard")
148
- dashboard_output = gr.Markdown()
149
  refresh_btn = gr.Button("πŸ”„ Refresh Data")
150
  refresh_btn.click(fn=fetch_dashboard_data, inputs=[], outputs=[dashboard_output])
151
 
152
- # Automatically refresh dashboard when the tab is opened
153
- tabs.select(fn=fetch_dashboard_data, inputs=[], outputs=[dashboard_output])
154
-
155
  gr.Markdown("### **About EchoTruth**")
156
  gr.Markdown("EchoTruth uses AI to help users verify news authenticity in real-time.")
157
 
 
145
 
146
  with gr.Tab("πŸ“Š Dashboard") as dashboard_tab:
147
  gr.Markdown("# πŸ“Š Verification Dashboard")
148
+ dashboard_output = gr.Markdown("_Click 'Refresh Data' to load latest records._")
149
  refresh_btn = gr.Button("πŸ”„ Refresh Data")
150
  refresh_btn.click(fn=fetch_dashboard_data, inputs=[], outputs=[dashboard_output])
151
 
 
 
 
152
  gr.Markdown("### **About EchoTruth**")
153
  gr.Markdown("EchoTruth uses AI to help users verify news authenticity in real-time.")
154