Vineedhar commited on
Commit
9424cd4
1 Parent(s): 05e82a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -80,20 +80,23 @@ with gr.Blocks(title="DETR Object Detection by orYx Models") as demo:
80
  }
81
  </style>
82
  <div style="font-family:'Times New Roman', 'Serif'; font-size:16pt; font-weight:bold; text-align:center; color:royalblue;">DETR Object Detection</div>
83
- <img class="logo" src="path_to_your_logo_image" alt="Logo">
84
  <h4 style="color:navy;">1. Select a model.</h4>
85
  """)
86
  model = gr.Radio(["detr-resnet-50", "detr-resnet-101"], value="detr-resnet-50", label="Model name")
87
 
88
  gr.HTML("""<br/>""")
89
- gr.HTML("""<h4 style="color:navy;">2-a. Select an example by clicking a thumbnail below.</h4>""")
90
- gr.HTML("""<h4 style="color:navy;">2-b. Or upload an image by clicking on the canvas.</h4>""")
91
 
92
  with gr.Row():
93
  input_image = gr.Image(label="Input image", type="pil")
94
  output_image = gr.Image(label="Output image with predicted instances", type="pil")
95
 
96
- gr.Examples(['samples/cats.jpg', 'samples/detectron2.png', 'samples/cat.jpg', 'samples/hotdog.jpg'], inputs=input_image)
 
 
 
97
 
98
  gr.HTML("""<br/>""")
99
  gr.HTML("""<h4 style="color:navy;">3. Then, click "Infer" button to predict object instances. It will take about 10 seconds (on cpu)</h4>""")
 
80
  }
81
  </style>
82
  <div style="font-family:'Times New Roman', 'Serif'; font-size:16pt; font-weight:bold; text-align:center; color:royalblue;">DETR Object Detection</div>
83
+ <img class="logo" src="oryx_logo (2).png" alt="Logo">
84
  <h4 style="color:navy;">1. Select a model.</h4>
85
  """)
86
  model = gr.Radio(["detr-resnet-50", "detr-resnet-101"], value="detr-resnet-50", label="Model name")
87
 
88
  gr.HTML("""<br/>""")
89
+ gr.HTML("""<h4 style="color:navy;">Please upload an image..</h4>""")
90
+
91
 
92
  with gr.Row():
93
  input_image = gr.Image(label="Input image", type="pil")
94
  output_image = gr.Image(label="Output image with predicted instances", type="pil")
95
 
96
+ gr.Examples(['trees_traffic.jpg',
97
+ 'traffic.jpg',
98
+ 'flyover.jpg',
99
+ 'Saudi_traffic.jpg'], inputs=input_image)
100
 
101
  gr.HTML("""<br/>""")
102
  gr.HTML("""<h4 style="color:navy;">3. Then, click "Infer" button to predict object instances. It will take about 10 seconds (on cpu)</h4>""")