Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def extract_components(image, component):
|
|
40 |
return Image.fromarray(image)
|
41 |
|
42 |
# Define the Gradio interface
|
43 |
-
|
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
|