Spaces:
Runtime error
Runtime error
fix typo
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ with gr.Blocks() as demo:
|
|
| 52 |
visible=False
|
| 53 |
)
|
| 54 |
|
| 55 |
-
def
|
| 56 |
return {
|
| 57 |
watermark_image:
|
| 58 |
{
|
|
@@ -72,7 +72,7 @@ with gr.Blocks() as demo:
|
|
| 72 |
}
|
| 73 |
|
| 74 |
with gr.Column():
|
| 75 |
-
gr.Markdown("###
|
| 76 |
output_image = gr.Image(show_label=False)
|
| 77 |
with gr.Row():
|
| 78 |
apply_button =gr.Button("Apply")
|
|
@@ -88,7 +88,7 @@ with gr.Blocks() as demo:
|
|
| 88 |
extract_button = gr.Button("Extract")
|
| 89 |
|
| 90 |
radio_button.change(
|
| 91 |
-
fn=
|
| 92 |
inputs=radio_button,
|
| 93 |
outputs=[watermark_image, watermark_text, watermark_url]
|
| 94 |
)
|
|
|
|
| 52 |
visible=False
|
| 53 |
)
|
| 54 |
|
| 55 |
+
def update_visibility(radio_value):
|
| 56 |
return {
|
| 57 |
watermark_image:
|
| 58 |
{
|
|
|
|
| 72 |
}
|
| 73 |
|
| 74 |
with gr.Column():
|
| 75 |
+
gr.Markdown("### Applied watermark image")
|
| 76 |
output_image = gr.Image(show_label=False)
|
| 77 |
with gr.Row():
|
| 78 |
apply_button =gr.Button("Apply")
|
|
|
|
| 88 |
extract_button = gr.Button("Extract")
|
| 89 |
|
| 90 |
radio_button.change(
|
| 91 |
+
fn=update_visibility,
|
| 92 |
inputs=radio_button,
|
| 93 |
outputs=[watermark_image, watermark_text, watermark_url]
|
| 94 |
)
|