Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def demo_process(image):
|
|
| 22 |
return [original, gray, inverted]
|
| 23 |
|
| 24 |
# Build Gradio UI
|
| 25 |
-
with gr.Blocks(
|
| 26 |
gr.Markdown("# 🌿 Plant Analysis Demo\nUpload an image and see example outputs.")
|
| 27 |
|
| 28 |
with gr.Row():
|
|
@@ -30,7 +30,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 30 |
inp = gr.Image(type="pil", label="Upload Image")
|
| 31 |
run = gr.Button("Run Demo", variant="primary")
|
| 32 |
with gr.Column(scale=2):
|
| 33 |
-
|
|
|
|
| 34 |
|
| 35 |
run.click(demo_process, inputs=inp, outputs=gallery)
|
| 36 |
|
|
|
|
| 22 |
return [original, gray, inverted]
|
| 23 |
|
| 24 |
# Build Gradio UI
|
| 25 |
+
with gr.Blocks() as demo:
|
| 26 |
gr.Markdown("# 🌿 Plant Analysis Demo\nUpload an image and see example outputs.")
|
| 27 |
|
| 28 |
with gr.Row():
|
|
|
|
| 30 |
inp = gr.Image(type="pil", label="Upload Image")
|
| 31 |
run = gr.Button("Run Demo", variant="primary")
|
| 32 |
with gr.Column(scale=2):
|
| 33 |
+
# Removed .style() for compatibility
|
| 34 |
+
gallery = gr.Gallery(label="Outputs")
|
| 35 |
|
| 36 |
run.click(demo_process, inputs=inp, outputs=gallery)
|
| 37 |
|