fahimehorvatinia commited on
Commit
9226311
·
unverified ·
1 Parent(s): 8bf23ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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(theme=gr.themes.Soft()) as demo:
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
- gallery = gr.Gallery(label="Outputs").style(grid=[3], height="auto")
 
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