Felguk commited on
Commit
8e267cb
·
verified ·
1 Parent(s): a6d4401

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -40,7 +40,7 @@ def extract_components(image, component):
40
  return Image.fromarray(image)
41
 
42
  # Define the Gradio interface
43
- with gr.Blocks(theme='NoCrypt/miku') as demo:
44
  fn=extract_components,
45
  inputs=[
46
  gr.Image(label="Input Image"),
@@ -48,7 +48,8 @@ with gr.Blocks(theme='NoCrypt/miku') as demo:
48
  ],
49
  outputs=gr.Image(label="Output Image"),
50
  title="Image to Components",
51
- description="Extract different components from an image (e.g., RGB channels, grayscale, edges)."
 
52
  )
53
 
54
  # Launch the app
 
40
  return Image.fromarray(image)
41
 
42
  # Define the Gradio interface
43
+ iface = gr.Interface(
44
  fn=extract_components,
45
  inputs=[
46
  gr.Image(label="Input Image"),
 
48
  ],
49
  outputs=gr.Image(label="Output Image"),
50
  title="Image to Components",
51
+ description="Extract different components from an image (e.g., RGB channels, grayscale, edges)",
52
+ theme='NoCrypt/miku'
53
  )
54
 
55
  # Launch the app