broadfield-dev commited on
Commit
06bdda5
·
verified ·
1 Parent(s): 52253f7

Update gradio_keylock/component.py

Browse files
Files changed (1) hide show
  1. gradio_keylock/component.py +8 -2
gradio_keylock/component.py CHANGED
@@ -173,10 +173,16 @@ class KeylockDecoderComponent:
173
  self.status_display = gr.Markdown("Upload a KeyLock image to auto-fill credentials.")
174
  with gr.Accordion("Generate Encrypted Image", open=False):
175
  payload_input = gr.Textbox(
176
- label="Payload to Encrypt",
177
  placeholder="USER = \"demo-user\"\nPASS: DEMO_test_PASS\n# Lines starting with # are ignored",
178
  lines=5,
179
- value="USER = \"demo-user\"\nPASS: DEMO_test_PASS",
 
 
 
 
 
 
180
  )
181
  generate_img_button = gr.Button("Generate Image", variant="secondary")
182
  generated_image_preview = gr.Image(label="Generated Image Preview", type="filepath", interactive=False)
 
173
  self.status_display = gr.Markdown("Upload a KeyLock image to auto-fill credentials.")
174
  with gr.Accordion("Generate Encrypted Image", open=False):
175
  payload_input = gr.Textbox(
176
+ label="Payload to Encrypt (Demo)",
177
  placeholder="USER = \"demo-user\"\nPASS: DEMO_test_PASS\n# Lines starting with # are ignored",
178
  lines=5,
179
+ value="""
180
+ USER = "demo-user"
181
+ PASS: DEMO_test_PASS
182
+ "GROQ_API_KEY" = "ALKSDFJASHFKSFH"
183
+ "HF_API_KEY" : "SDFLSDJFFIEWOIFHOWI"
184
+ "OPENAI_API_KEY" : SDFLSJDSFSDF
185
+ """,
186
  )
187
  generate_img_button = gr.Button("Generate Image", variant="secondary")
188
  generated_image_preview = gr.Image(label="Generated Image Preview", type="filepath", interactive=False)