Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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("
|
| 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
|
| 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
|
| 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 |
|