BhumikaMak commited on
Commit
959e306
·
verified ·
1 Parent(s): 67134bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -1
app.py CHANGED
@@ -1 +1,18 @@
1
- - test file for user interface
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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()