Felguk commited on
Commit
a6d4401
·
verified ·
1 Parent(s): 16a6604

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -40,7 +40,7 @@ def extract_components(image, component):
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,8 +48,7 @@ iface = gr.Interface(
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=Nymbo/Nymbo_theme_5
53
  )
54
 
55
  # Launch the app
 
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
  ],
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