v1 - dashboard
Browse files
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 |
|