broadfield-dev commited on
Commit
ba9e0a6
·
verified ·
1 Parent(s): 849764e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -45,10 +45,10 @@ def main_ui():
45
  with gr.Row():
46
  keylock_image_input = gr.Image(
47
  label="Stego Image (PNG containing HF_TOKEN)",
48
- type="pil", # Pass PIL image to backend
49
- # sources=["upload"], # Optional: Restrict to upload only
50
- # height=200, # Optional: for display consistency
51
- # width=200,
52
  )
53
  keylock_password_input = gr.Textbox(
54
  label="Image Password",
 
45
  with gr.Row():
46
  keylock_image_input = gr.Image(
47
  label="Stego Image (PNG containing HF_TOKEN)",
48
+ type="pil",
49
+ image_mode="RGBA", # << TRY ADDING THIS. Use "RGB" if your images are RGB.
50
+ # If you're unsure, you can omit it first to see if the debug saving helps.
51
+ # sources=["upload"],
52
  )
53
  keylock_password_input = gr.Textbox(
54
  label="Image Password",