Update app.py
Browse files
app.py
CHANGED
@@ -15,9 +15,9 @@ from cryptography.hazmat.primitives.asymmetric import padding
|
|
15 |
from cryptography.exceptions import InvalidTag
|
16 |
|
17 |
|
18 |
-
import subprocess
|
19 |
-
result = subprocess.run(["pip", "freeze"], capture_output=True, text=True)
|
20 |
-
print(result.stdout)
|
21 |
|
22 |
|
23 |
# --- Configure Logging ---
|
@@ -168,7 +168,7 @@ with gr.Blocks(theme=theme, title="KeyLock Operations Dashboard") as demo:
|
|
168 |
gr.Textbox(label="Private Key Status", value=key_status, interactive=False)
|
169 |
|
170 |
with gr.Accordion("View Service Public Key", open=False):
|
171 |
-
gr.Code(value=PUBLIC_KEY_PEM_STRING, language="
|
172 |
|
173 |
gr.Markdown("## API Documentation")
|
174 |
gr.Markdown("This server exposes a conceptual API endpoint for external clients.")
|
|
|
15 |
from cryptography.exceptions import InvalidTag
|
16 |
|
17 |
|
18 |
+
#import subprocess
|
19 |
+
#result = subprocess.run(["pip", "freeze"], capture_output=True, text=True)
|
20 |
+
#print(result.stdout)
|
21 |
|
22 |
|
23 |
# --- Configure Logging ---
|
|
|
168 |
gr.Textbox(label="Private Key Status", value=key_status, interactive=False)
|
169 |
|
170 |
with gr.Accordion("View Service Public Key", open=False):
|
171 |
+
gr.Code(value=PUBLIC_KEY_PEM_STRING, language="python", label="Service Public Key (from keylock_pub.pem)")
|
172 |
|
173 |
gr.Markdown("## API Documentation")
|
174 |
gr.Markdown("This server exposes a conceptual API endpoint for external clients.")
|