JustKiddo commited on
Commit
72d2777
·
verified ·
1 Parent(s): b5a02d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -14,7 +14,6 @@ def sepia(input_img):
14
  sepia_img /= sepia_img.max()
15
  return sepia_img
16
 
17
- sepia_interface = gr.Interface(sepia, gr.Image(), "image")
18
 
19
  ## https://www.gradio.app/docs/gradio/blocks
20
  ## required positional arguments: 'inputs' and 'outputs'
@@ -25,13 +24,13 @@ def process_image(image):
25
  def additional_input(text):
26
  return f"Additional input received: {text}"
27
 
 
 
28
  with gr.Blocks() as generated_output:
29
- #gr.Interface(sepia, gr.Image(), "image")
30
  with gr.Row():
31
- inp = gr.Textbox(gr.Interface(sepia, gr.Image(), "image"))
32
- out = gr.Textbox()
33
  with gr.Column():
34
- inp.change(sepia, inp, out)
35
 
36
  #with gr.Blocks() as generated_output:
37
  # inp = gr.Interface(sepia, gr.Image(), "image")
 
14
  sepia_img /= sepia_img.max()
15
  return sepia_img
16
 
 
17
 
18
  ## https://www.gradio.app/docs/gradio/blocks
19
  ## required positional arguments: 'inputs' and 'outputs'
 
24
  def additional_input(text):
25
  return f"Additional input received: {text}"
26
 
27
+ sepia_interface = gr.Interface(sepia, gr.Image(), "image")
28
+
29
  with gr.Blocks() as generated_output:
 
30
  with gr.Row():
31
+ sepia_interface
 
32
  with gr.Column():
33
+ gr.Texbox()
34
 
35
  #with gr.Blocks() as generated_output:
36
  # inp = gr.Interface(sepia, gr.Image(), "image")