noumanjavaid commited on
Commit
6d6909d
·
verified ·
1 Parent(s): eb5eb48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -180,6 +180,7 @@ def detect_watermark(det_im):
180
  # Gradio app
181
  with gr.Blocks() as app:
182
  with gr.Tab("Add Watermark"):
 
183
  with gr.Row():
184
  with gr.Column():
185
  inp_im = gr.Image(label="Input Image", type="filepath")
@@ -190,7 +191,7 @@ with gr.Blocks() as app:
190
  with gr.Column():
191
  out_im = gr.Image(label="Watermarked Image")
192
 
193
- mark_btn.click(choose_encode, inputs=[inp_im, inp_mark], outputs=[out_im, msg_box, file_output])
194
 
195
  with gr.Tab("Detect Watermark"):
196
  with gr.Row():
 
180
  # Gradio app
181
  with gr.Blocks() as app:
182
  with gr.Tab("Add Watermark"):
183
+ cho = gr.Radio(choices=["stegan", ""] ,value="stenography", label="Watermark Method")
184
  with gr.Row():
185
  with gr.Column():
186
  inp_im = gr.Image(label="Input Image", type="filepath")
 
191
  with gr.Column():
192
  out_im = gr.Image(label="Watermarked Image")
193
 
194
+ mark_btn.click(choose_encode, inputs=[inp_im, inp_mark, cho], outputs=[out_im, msg_box, file_output])
195
 
196
  with gr.Tab("Detect Watermark"):
197
  with gr.Row():