Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1 +1,18 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import os
|
| 3 |
+
|
| 4 |
+
image1_path = os.path.join(os.getcwd(), "data/xai/yolov5.png")
|
| 5 |
+
image2_path = os.path.join(os.getcwd(), "data/xai/yolov8.png")
|
| 6 |
+
|
| 7 |
+
with gr.Blocks() as demo:
|
| 8 |
+
with gr.Row():
|
| 9 |
+
with gr.Column():
|
| 10 |
+
gr.Markdown("Html output 1")
|
| 11 |
+
gr.Image(image1_path, label="Image1")
|
| 12 |
+
gr.Image(image1_path, label="Image1")
|
| 13 |
+
with gr.Column():
|
| 14 |
+
gr.Markdown("Html output2")
|
| 15 |
+
gr.Image(image2_path, label="Image2")
|
| 16 |
+
gr.Image(image2_path, label="Image2")
|
| 17 |
+
|
| 18 |
+
demo.launch()
|