broadfield-dev commited on
Commit
adedb69
·
verified ·
1 Parent(s): 10ec5bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ from huggingface_hub import InferenceClient
19
 
20
  logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
21
  logger = logging.getLogger(__name__)
22
- ENDPOINTS_FILE = "endpoints.json"
23
 
24
  HEADER_BITS = 32
25
  AES_GCM_NONCE_SIZE = 12
@@ -196,7 +196,7 @@ with gr.Blocks(theme=theme, title="KeyLock Showcase") as demo:
196
  gr.Markdown("## Embedded Server Details")
197
  gr.Markdown("This Gradio app is also running its own KeyLock server. You can use its details to test the client.")
198
  gr.Textbox(label="Embedded Server Status", value=KEYLOCK_STATUS_MESSAGE, interactive=False, lines=3)
199
- gr.Code(label="Embedded Server Public Key", value=PUBLIC_KEY_PEM_STRING, language="pem")
200
  gr.JSON(label="Embedded Server Required Payload", value={k['key_name']: k['example'] for k in api_get_info()["required_payload_keys"]})
201
 
202
  with gr.Accordion("Generate Image with Embedded Server", open=False):
 
19
 
20
  logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
21
  logger = logging.getLogger(__name__)
22
+ ENDPOINTS_FILE = "https://huggingface.co/spaces/Space-Share/bucket/raw/main/endpoints.json"
23
 
24
  HEADER_BITS = 32
25
  AES_GCM_NONCE_SIZE = 12
 
196
  gr.Markdown("## Embedded Server Details")
197
  gr.Markdown("This Gradio app is also running its own KeyLock server. You can use its details to test the client.")
198
  gr.Textbox(label="Embedded Server Status", value=KEYLOCK_STATUS_MESSAGE, interactive=False, lines=3)
199
+ gr.Code(label="Embedded Server Public Key", value=PUBLIC_KEY_PEM_STRING, language="python")
200
  gr.JSON(label="Embedded Server Required Payload", value={k['key_name']: k['example'] for k in api_get_info()["required_payload_keys"]})
201
 
202
  with gr.Accordion("Generate Image with Embedded Server", open=False):