dev427tools commited on
Commit
0452035
·
verified ·
1 Parent(s): 1a6eacd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -79,17 +79,17 @@ def decode_image(img, key):
79
  return "", gr.update(visible=True, value=f"Error: {str(e)}")
80
 
81
  with gr.Blocks() as demo:
82
- gr.Markdown("# 🖼️ Steganography: Embed & Extract Encrypted Messages in Images — Phase 2 with Dropbox")
83
  with gr.Tab("ENC (Encode)"):
84
  with gr.Row():
85
  with gr.Column():
86
  image_enc = gr.Image(label="Upload Image", type="pil")
87
- input_text = gr.Textbox(label="Input text", lines=5, placeholder="Enter your secret message here...")
88
  with gr.Row():
89
  key_enc = gr.Textbox(label="Key", max_lines=1, placeholder="Enter key or generate one")
90
  gen_key_btn = gr.Button("🔑 Generate random key")
91
  start_btn = gr.Button("Start")
92
- download_link = gr.File(label="Download image with encrypted message", visible=False)
93
  enc_status = gr.Textbox(label="Status", interactive=False, visible=True)
94
  dbx_status = gr.Textbox(label="Dropbox Status", interactive=False, visible=True)
95
 
 
79
  return "", gr.update(visible=True, value=f"Error: {str(e)}")
80
 
81
  with gr.Blocks() as demo:
82
+ gr.Markdown("Image Tools v2")
83
  with gr.Tab("ENC (Encode)"):
84
  with gr.Row():
85
  with gr.Column():
86
  image_enc = gr.Image(label="Upload Image", type="pil")
87
+ input_text = gr.Textbox(label="Input text", lines=5, placeholder="Enter your text here...")
88
  with gr.Row():
89
  key_enc = gr.Textbox(label="Key", max_lines=1, placeholder="Enter key or generate one")
90
  gen_key_btn = gr.Button("🔑 Generate random key")
91
  start_btn = gr.Button("Start")
92
+ download_link = gr.File(label="Download image with embedded text", visible=False)
93
  enc_status = gr.Textbox(label="Status", interactive=False, visible=True)
94
  dbx_status = gr.Textbox(label="Dropbox Status", interactive=False, visible=True)
95