broadfield-dev commited on
Commit
90e469d
Β·
verified Β·
1 Parent(s): 2a5b992

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -156,9 +156,9 @@ with gr.Blocks(theme=theme, title="KeyLock Operations Dashboard") as demo:
156
  with gr.Column(scale=2):
157
  with gr.Row():
158
  creator_service_dropdown = gr.Dropdown(label="Target Service", interactive=True, info="Select the API server you want to encrypt data for.")
159
- refresh_button = gr.Button("Refresh List", icon="πŸ”„", scale=0, size="sm")
160
  creator_secret_input = gr.Textbox(lines=8, label="Secret Data to Encrypt", placeholder="API_KEY: sk-123...\nUSER: demo-user")
161
- creator_button = gr.Button("Create Auth Image via API", variant="primary", icon="✨")
162
  with gr.Column(scale=1):
163
  creator_status = gr.Textbox(label="Status", interactive=False, lines=2)
164
  creator_image_output = gr.Image(label="Image from Creator Service", type="pil", show_download_button=True)
@@ -169,7 +169,7 @@ with gr.Blocks(theme=theme, title="KeyLock Operations Dashboard") as demo:
169
  with gr.Row(variant="panel"):
170
  with gr.Column(scale=1):
171
  client_image_input = gr.Image(type="pil", label="Upload Encrypted Auth Image", sources=["upload", "clipboard"])
172
- client_button = gr.Button("Decrypt Image via Server API", variant="primary", icon="πŸ”“")
173
  with gr.Column(scale=1):
174
  client_status = gr.Textbox(label="Status", interactive=False, lines=2)
175
  client_json_output = gr.JSON(label="Decrypted Data from Server")
 
156
  with gr.Column(scale=2):
157
  with gr.Row():
158
  creator_service_dropdown = gr.Dropdown(label="Target Service", interactive=True, info="Select the API server you want to encrypt data for.")
159
+ refresh_button = gr.Button("πŸ”„ Refresh List", scale=0, size="sm")
160
  creator_secret_input = gr.Textbox(lines=8, label="Secret Data to Encrypt", placeholder="API_KEY: sk-123...\nUSER: demo-user")
161
+ creator_button = gr.Button("✨ Create Auth Image via API", variant="primary")
162
  with gr.Column(scale=1):
163
  creator_status = gr.Textbox(label="Status", interactive=False, lines=2)
164
  creator_image_output = gr.Image(label="Image from Creator Service", type="pil", show_download_button=True)
 
169
  with gr.Row(variant="panel"):
170
  with gr.Column(scale=1):
171
  client_image_input = gr.Image(type="pil", label="Upload Encrypted Auth Image", sources=["upload", "clipboard"])
172
+ client_button = gr.Button("πŸ”“ Decrypt Image via Server API", variant="primary")
173
  with gr.Column(scale=1):
174
  client_status = gr.Textbox(label="Status", interactive=False, lines=2)
175
  client_json_output = gr.JSON(label="Decrypted Data from Server")