Tpayne101 commited on
Commit
e36f0e1
·
verified ·
1 Parent(s): ff2a3d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -1
app.py CHANGED
@@ -36,4 +36,24 @@ verify_btn = gr.Interface(
36
  description="Checks cryptographic DNA of the latest agent instance"
37
  )
38
  iface.launch(share=True)
39
- verify_btn.launch(share=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  description="Checks cryptographic DNA of the latest agent instance"
37
  )
38
  iface.launch(share=True)
39
+ verify_btn.launch(share=True)
40
+ import gradio as gr
41
+ import json, os
42
+
43
+ def show_identities():
44
+ if os.path.exists("agent_identities.json"):
45
+ with open("agent_identities.json", "r") as f:
46
+ return json.dumps(json.load(f), indent=2)
47
+ return "No digital DNA file found yet."
48
+
49
+ dna_viewer = gr.Interface(
50
+ fn=show_identities,
51
+ inputs=[],
52
+ outputs="text",
53
+ title="🔐 Digital DNA Viewer",
54
+ description="View all agent identities and their signatures."
55
+ )
56
+
57
+ # Combine both UIs into tabs
58
+ app = gr.TabbedInterface([iface, dna_viewer], ["AgentOS Core", "Digital DNA Viewer"])
59
+ app.launch()