reab5555 commited on
Commit
9e3e4c1
·
verified ·
1 Parent(s): 9ec7a9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -4
app.py CHANGED
@@ -378,10 +378,18 @@ def process_and_analyze(image):
378
  # Create Gradio interface
379
  def create_interface():
380
  with gr.Blocks() as demo:
381
- # Add the icon above the title using a Gradio Image component
382
- gr.Image(value="appendix/icon.webp", width=10, show_label=False, interactive=False)
383
-
384
- gr.Markdown("# Image Anomaly-Surprise Detection")
 
 
 
 
 
 
 
 
385
  gr.Markdown(
386
  "This project offers a tool that identifies surprising elements in images, "
387
  "pinpointing what violates our expectations. It analyzes images for unexpected objects, "
 
378
  # Create Gradio interface
379
  def create_interface():
380
  with gr.Blocks() as demo:
381
+ with gr.Row(): # Horizontal layout for the left side alignment
382
+ with gr.Column(scale=1): # Adjust the scale for the left section
383
+ gr.Image(
384
+ value="appendix/icon.webp",
385
+ width=100,
386
+ interactive=False,
387
+ show_label=False,
388
+ elem_id="icon"
389
+ )
390
+ gr.Markdown("## Image Anomaly-Surprise Detection") # Title below the image
391
+ with gr.Column(scale=3): # Empty or additional GUI elements on the right side
392
+ pass
393
  gr.Markdown(
394
  "This project offers a tool that identifies surprising elements in images, "
395
  "pinpointing what violates our expectations. It analyzes images for unexpected objects, "