Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,18 +25,18 @@ def decode(image_str):
|
|
25 |
return image
|
26 |
|
27 |
with gr.Blocks() as demo:
|
28 |
-
with gr.Tab():
|
29 |
with gr.Row():
|
30 |
with gr.Column():
|
31 |
image = gr.Image(type='pil', interactive=True)
|
32 |
btn_enc = gr.Button()
|
33 |
output_image_str = gr.Textbox(label='image string', interactive=False)
|
34 |
-
with gr.Tab():
|
35 |
with gr.Row():
|
36 |
with gr.Column():
|
37 |
image_str = gr.Textbox(label='image string', interactive=True)
|
38 |
btn_dec = gr.Button()
|
39 |
-
output_image = gr.Image(type='pil', interactive=
|
40 |
|
41 |
|
42 |
btn_enc.click(
|
|
|
25 |
return image
|
26 |
|
27 |
with gr.Blocks() as demo:
|
28 |
+
with gr.Tab(label='Encoding'):
|
29 |
with gr.Row():
|
30 |
with gr.Column():
|
31 |
image = gr.Image(type='pil', interactive=True)
|
32 |
btn_enc = gr.Button()
|
33 |
output_image_str = gr.Textbox(label='image string', interactive=False)
|
34 |
+
with gr.Tab('Decoding'):
|
35 |
with gr.Row():
|
36 |
with gr.Column():
|
37 |
image_str = gr.Textbox(label='image string', interactive=True)
|
38 |
btn_dec = gr.Button()
|
39 |
+
output_image = gr.Image(type='pil', interactive=False)
|
40 |
|
41 |
|
42 |
btn_enc.click(
|