BhumikaMak commited on
Commit
a2d322d
·
verified ·
1 Parent(s): ded489d

update ux interface

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -10,7 +10,7 @@ yolov8_dff = os.path.join(os.getcwd(), "data/xai/yolov8_dff.png")
10
  # Netron HTML templates
11
  def get_netron_html(model_url):
12
  return f"""
13
- <div style="background-color: black; padding: 5px; border: 1px solid white;">
14
  <iframe
15
  src="{model_url}"
16
  width="100%"
@@ -60,15 +60,15 @@ with gr.Blocks(css=custom_css) as demo:
60
 
61
  with gr.Row():
62
  with gr.Column():
63
- gr.Markdown("Yolov5")
64
  gr.Image(yolov5_result, label="Detections & Interpretability Map")
65
  gr.Image(yolov5_dff, label="Feature Factorization & discovered concept")
66
- gr.HTML(get_netron_html(yolov5_url))
67
 
68
  with gr.Column():
69
- gr.Markdown("Yolov8")
70
  gr.Image(yolov8_result, label="Detections & Interpretability Map")
71
  gr.Image(yolov8_dff, label="Feature Factorization & discovered concept")
72
- gr.HTML(get_netron_html(yolov8_url))
73
 
74
  demo.launch()
 
10
  # Netron HTML templates
11
  def get_netron_html(model_url):
12
  return f"""
13
+ <div style="background-color: black; padding: 1px; border: 0.5px solid white;">
14
  <iframe
15
  src="{model_url}"
16
  width="100%"
 
60
 
61
  with gr.Row():
62
  with gr.Column():
63
+ gr.HTML(get_netron_html(yolov5_url))
64
  gr.Image(yolov5_result, label="Detections & Interpretability Map")
65
  gr.Image(yolov5_dff, label="Feature Factorization & discovered concept")
66
+
67
 
68
  with gr.Column():
69
+ gr.HTML(get_netron_html(yolov8_url))
70
  gr.Image(yolov8_result, label="Detections & Interpretability Map")
71
  gr.Image(yolov8_dff, label="Feature Factorization & discovered concept")
72
+
73
 
74
  demo.launch()