Spaces:
Sleeping
Sleeping
Update sarcore.py
Browse files- sarcore.py +11 -2
sarcore.py
CHANGED
|
@@ -1,6 +1,15 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
def render(online):
|
|
|
|
| 4 |
with gr.Column():
|
| 5 |
-
gr.Markdown("### Rescue
|
| 6 |
-
gr.
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import ethics_audit
|
| 3 |
+
|
| 4 |
+
missions = [
|
| 5 |
+
{"ID": "TX-001", "Location": "Bridge City", "Status": "In Progress"},
|
| 6 |
+
{"ID": "TX-002", "Location": "Kerrville", "Status": "Rescued"},
|
| 7 |
+
{"ID": "TX-003", "Location": "Houston", "Status": "Awaiting Extraction"},
|
| 8 |
+
]
|
| 9 |
|
| 10 |
def render(online):
|
| 11 |
+
ethics_audit.log_event(f"SAR module activated in {'Online' if online else 'Offline'} mode.")
|
| 12 |
with gr.Column():
|
| 13 |
+
gr.Markdown("### Active Rescue Missions")
|
| 14 |
+
gr.Dataframe(value=missions, headers=["ID", "Location", "Status"], label="Rescue Task List", interactive=False)
|
| 15 |
+
gr.Button("Refresh Data").click(lambda: missions, outputs=[])
|