broadfield-dev commited on
Commit
5279e8e
·
verified ·
1 Parent(s): c233e1a

Update gradio_keylock/component.py

Browse files
Files changed (1) hide show
  1. gradio_keylock/component.py +2 -1
gradio_keylock/component.py CHANGED
@@ -130,6 +130,7 @@ class AppServerLogic:
130
  font_bold = self._get_font(PREFERRED_FONTS, 30)
131
  draw.rectangle([0, 20, width, 80], fill=overlay_color)
132
  draw.text((width / 2, 50), "KeyLock Secure Data", fill=title_color, font=font_bold, anchor="ms")
 
133
  final_image_rgb = Image.new("RGB", img_overlayed.size, (0, 0, 0))
134
  final_image_rgb.paste(img_overlayed, (0, 0), img_overlayed)
135
  return final_image_rgb
@@ -167,7 +168,7 @@ class KeylockDecoderComponent:
167
  self.status_display = None
168
 
169
  def build_ui(self):
170
- with gr.Column():
171
  self.image_input = gr.Image(label="KeyLock Image", type="pil", show_label=False)
172
  self.status_display = gr.Markdown("Upload a KeyLock image to auto-fill credentials.")
173
  with gr.Accordion("Generate Encrypted Image", open=False):
 
130
  font_bold = self._get_font(PREFERRED_FONTS, 30)
131
  draw.rectangle([0, 20, width, 80], fill=overlay_color)
132
  draw.text((width / 2, 50), "KeyLock Secure Data", fill=title_color, font=font_bold, anchor="ms")
133
+ draw.text((width / 2, 30), "KeyLock Secure Data", fill=title_color, font=font_bold, anchor="ms")
134
  final_image_rgb = Image.new("RGB", img_overlayed.size, (0, 0, 0))
135
  final_image_rgb.paste(img_overlayed, (0, 0), img_overlayed)
136
  return final_image_rgb
 
168
  self.status_display = None
169
 
170
  def build_ui(self):
171
+ with gr.Group():
172
  self.image_input = gr.Image(label="KeyLock Image", type="pil", show_label=False)
173
  self.status_display = gr.Markdown("Upload a KeyLock image to auto-fill credentials.")
174
  with gr.Accordion("Generate Encrypted Image", open=False):