Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,4 +27,13 @@ def verify_identity():
|
|
| 27 |
last_id = list(data.keys())[-1]
|
| 28 |
sig = data[last_id]["signature"]
|
| 29 |
result = identity.verify_identity(last_id, sig)
|
| 30 |
-
return f"Verification result for {last_id}: {result}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
last_id = list(data.keys())[-1]
|
| 28 |
sig = data[last_id]["signature"]
|
| 29 |
result = identity.verify_identity(last_id, sig)
|
| 30 |
+
return f"Verification result for {last_id}: {result}"
|
| 31 |
+
verify_btn = gr.Interface(
|
| 32 |
+
fn=lambda: verify_identity(),
|
| 33 |
+
inputs=[],
|
| 34 |
+
outputs="text",
|
| 35 |
+
title="Verify Agent Identity",
|
| 36 |
+
description="Checks cryptographic DNA of the latest agent instance"
|
| 37 |
+
)
|
| 38 |
+
iface.launch(share=True)
|
| 39 |
+
verify_btn.launch(share=True)
|