Spaces:
Running
Running
File size: 529 Bytes
23f56a9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import gradio as gr
import utils
with gr.Blocks() as app:
with gr.Tab("Add Watermark"):
with gr.Row():
with gr.Column():
inp_im = gr.Image(label="Input Image")
inp_mark = gr.Textbox(label="Watermark")
mark_btn = gr.Button()
msg_box = gr.Textbox(label="System Message")
with gr.Column():
out_im = gr.Image(label="Watermarked Image")
mark_btn.click(utils.encode,[inp_im,inp_mark],[out_im,msg_box])
app.launch() |