Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -378,8 +378,9 @@ 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
|
| 382 |
-
gr.
|
|
|
|
| 383 |
|
| 384 |
gr.Markdown("# Image Anomaly-Surprise Detection")
|
| 385 |
gr.Markdown(
|
|
@@ -388,19 +389,12 @@ def create_interface():
|
|
| 388 |
"locations, social scenarios, settings, and roles."
|
| 389 |
)
|
| 390 |
|
| 391 |
-
#
|
| 392 |
-
gr.
|
| 393 |
-
""
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
<td><img src="appendix/gradio_example2.png" width="250" alt="Image 2"></td>
|
| 398 |
-
<td><img src="appendix/gradio_example3.png" width="250" alt="Image 3"></td>
|
| 399 |
-
<td><img src="appendix/gradio_example4.png" width="250" alt="Image 4"></td>
|
| 400 |
-
</tr>
|
| 401 |
-
</table>
|
| 402 |
-
"""
|
| 403 |
-
)
|
| 404 |
|
| 405 |
with gr.Row():
|
| 406 |
with gr.Column():
|
|
|
|
| 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 |
+
with gr.Row():
|
| 383 |
+
gr.Image(value="appendix/icon.webp", width=100, show_label=False, interactive=False)
|
| 384 |
|
| 385 |
gr.Markdown("# Image Anomaly-Surprise Detection")
|
| 386 |
gr.Markdown(
|
|
|
|
| 389 |
"locations, social scenarios, settings, and roles."
|
| 390 |
)
|
| 391 |
|
| 392 |
+
# Display example images in a row using Gradio Image components
|
| 393 |
+
with gr.Row():
|
| 394 |
+
gr.Image(value="appendix/gradio_example.png", width=250, show_label=False, interactive=False)
|
| 395 |
+
gr.Image(value="appendix/gradio_example2.png", width=250, show_label=False, interactive=False)
|
| 396 |
+
gr.Image(value="appendix/gradio_example3.png", width=250, show_label=False, interactive=False)
|
| 397 |
+
gr.Image(value="appendix/gradio_example4.png", width=250, show_label=False, interactive=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 398 |
|
| 399 |
with gr.Row():
|
| 400 |
with gr.Column():
|