Update app.py
Browse files
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 |
-
#
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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, "
|