kcelia commited on
Commit
9db6de2
1 Parent(s): bf8c653

chore test

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -418,7 +418,7 @@ with demo:
418
  )
419
  with gr.Row():
420
  input_image = gr.Image(
421
- value=None, label="Upload an image here.", height=256,
422
  width=256, sources="upload", interactive=True,
423
  )
424
 
@@ -426,6 +426,7 @@ with demo:
426
  examples=EXAMPLES, inputs=[input_image], examples_per_page=5, label="Examples to use."
427
  )
428
 
 
429
  gr.Markdown("### Step 2: Choose your filter.")
430
  filter_name = gr.Dropdown(
431
  choices=AVAILABLE_FILTERS, value="inverted", label="Choose your filter", interactive=True
@@ -554,6 +555,9 @@ with demo:
554
  outputs=[output_image, keygen_checkbox, send_input_checkbox],
555
  )
556
 
 
 
 
557
  gr.Markdown(
558
  "The app was built with [Concrete-ML](https://github.com/zama-ai/concrete-ml), a "
559
  "Privacy-Preserving Machine Learning (PPML) open-source set of tools by [Zama](https://zama.ai/). "
 
418
  )
419
  with gr.Row():
420
  input_image = gr.Image(
421
+ value=None, label="Upload an image here.", height=256,
422
  width=256, sources="upload", interactive=True,
423
  )
424
 
 
426
  examples=EXAMPLES, inputs=[input_image], examples_per_page=5, label="Examples to use."
427
  )
428
 
429
+
430
  gr.Markdown("### Step 2: Choose your filter.")
431
  filter_name = gr.Dropdown(
432
  choices=AVAILABLE_FILTERS, value="inverted", label="Choose your filter", interactive=True
 
555
  outputs=[output_image, keygen_checkbox, send_input_checkbox],
556
  )
557
 
558
+ input_image.change(fn=resize_img, inputs=input_image, outputs=input_image)
559
+
560
+
561
  gr.Markdown(
562
  "The app was built with [Concrete-ML](https://github.com/zama-ai/concrete-ml), a "
563
  "Privacy-Preserving Machine Learning (PPML) open-source set of tools by [Zama](https://zama.ai/). "