Spaces:
Runtime error
Runtime error
chore: update layout
Browse files- SSL_watermark.py +1 -1
- app.py +2 -2
SSL_watermark.py
CHANGED
|
@@ -84,4 +84,4 @@ def decode(image):
|
|
| 84 |
loss_R = -(rho * dot_product**2 - norm**2) # B-B -> B
|
| 85 |
|
| 86 |
text_marked = "marked" if loss_R < 0 else "unmarked"
|
| 87 |
-
return f'Image is {text_marked}
|
|
|
|
| 84 |
loss_R = -(rho * dot_product**2 - norm**2) # B-B -> B
|
| 85 |
|
| 86 |
text_marked = "marked" if loss_R < 0 else "unmarked"
|
| 87 |
+
return f'Image is {text_marked}'
|
app.py
CHANGED
|
@@ -81,7 +81,7 @@ with gr.Blocks() as demo:
|
|
| 81 |
|
| 82 |
with gr.Column():
|
| 83 |
gr.Markdown("### Applied watermark image")
|
| 84 |
-
output_image = gr.Image(show_label=False)
|
| 85 |
with gr.Row():
|
| 86 |
apply_button =gr.Button("Apply")
|
| 87 |
|
|
@@ -97,7 +97,7 @@ with gr.Blocks() as demo:
|
|
| 97 |
)
|
| 98 |
with gr.Column():
|
| 99 |
gr.Markdown("### Extracted watermark")
|
| 100 |
-
extracted_watermark = gr.Image(type='pil')
|
| 101 |
extract_button = gr.Button("Extract")
|
| 102 |
|
| 103 |
radio_button.change(
|
|
|
|
| 81 |
|
| 82 |
with gr.Column():
|
| 83 |
gr.Markdown("### Applied watermark image")
|
| 84 |
+
output_image = gr.Image(show_label=False).style(height=500)
|
| 85 |
with gr.Row():
|
| 86 |
apply_button =gr.Button("Apply")
|
| 87 |
|
|
|
|
| 97 |
)
|
| 98 |
with gr.Column():
|
| 99 |
gr.Markdown("### Extracted watermark")
|
| 100 |
+
extracted_watermark = gr.Image(type='pil').style(height=500)
|
| 101 |
extract_button = gr.Button("Extract")
|
| 102 |
|
| 103 |
radio_button.change(
|