Spaces:
Sleeping
Sleeping
fix
Browse files
app.py
CHANGED
@@ -17,6 +17,7 @@ def process_image(msg, img):
|
|
17 |
metadata.add_text("parameters", msg+" Steps: 0, Hidden message added using: [promptinspector-abuser](https://huggingface.co/spaces/NoCrypt/promptinspector-abuser)")
|
18 |
im = roundtrip(targetImage, pnginfo=metadata)
|
19 |
status = "Hidden message added. Message: "+msg
|
|
|
20 |
return im, status
|
21 |
|
22 |
|
@@ -29,9 +30,9 @@ with gr.Blocks() as demo:
|
|
29 |
with gr.Column():
|
30 |
status = gr.Textbox(label="Status", value="Ready", interactive=False)
|
31 |
output = gr.Image(elem_id="output_image", label="Output", interactive=False, type="pil", visible=False)
|
32 |
-
download = gr.Button(value="Download", interactive=
|
33 |
|
34 |
-
btn.click(process_image, inputs=[text, input_img], outputs=[output, status])
|
35 |
download.click(lambda x: x, inputs=[output], outputs=[output], _js="""
|
36 |
(e)=>{
|
37 |
var a = document.createElement("a");
|
|
|
17 |
metadata.add_text("parameters", msg+" Steps: 0, Hidden message added using: [promptinspector-abuser](https://huggingface.co/spaces/NoCrypt/promptinspector-abuser)")
|
18 |
im = roundtrip(targetImage, pnginfo=metadata)
|
19 |
status = "Hidden message added. Message: "+msg
|
20 |
+
dl.interactive = True
|
21 |
return im, status
|
22 |
|
23 |
|
|
|
30 |
with gr.Column():
|
31 |
status = gr.Textbox(label="Status", value="Ready", interactive=False)
|
32 |
output = gr.Image(elem_id="output_image", label="Output", interactive=False, type="pil", visible=False)
|
33 |
+
download = gr.Button(value="Download", interactive=True)
|
34 |
|
35 |
+
btn.click(process_image, inputs=[text, input_img, download], outputs=[output, status, download])
|
36 |
download.click(lambda x: x, inputs=[output], outputs=[output], _js="""
|
37 |
(e)=>{
|
38 |
var a = document.createElement("a");
|