HugoHE commited on
Commit
1bfb4c8
·
1 Parent(s): 90ea7b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -185,7 +185,7 @@ def inference_gd(file):
185
 
186
 
187
  examples = ["examples/0.jpg", "examples/1.jpg", "examples/2.jpg", "examples/3.jpg"]
188
- with gr.Blocks(theme="gradio/monochrome") as demo:
189
  gr.Markdown("# Runtime Monitoring Object Detection")
190
  gr.Markdown(
191
  """This interactive demo is based on the box abstraction-based monitors for Faster R-CNN model. The model is trained using [Detectron2](https://github.com/facebookresearch/detectron2) library on the in-distribution dataset [Berkeley DeepDrive-100k](https://www.bdd100k.com/), which contains objects within autonomous driving domain. The monitors are constructed by abstraction of extracted feature from the training data. The demo showcases the monitors' capacity to reject problematic detections due to out-of-distribution(OOD) objects.
@@ -202,7 +202,7 @@ In case the output image seems too small, simply right-click on the image, and c
202
  )
203
  with gr.Row():
204
  with gr.Column():
205
- image = gr.inputs.Image(type="filepath", label="Input")
206
  button = gr.Button("Infer")
207
  eamples_block = gr.Examples(examples, image)
208
  with gr.Column():
 
185
 
186
 
187
  examples = ["examples/0.jpg", "examples/1.jpg", "examples/2.jpg", "examples/3.jpg"]
188
+ with gr.Blocks() as demo:
189
  gr.Markdown("# Runtime Monitoring Object Detection")
190
  gr.Markdown(
191
  """This interactive demo is based on the box abstraction-based monitors for Faster R-CNN model. The model is trained using [Detectron2](https://github.com/facebookresearch/detectron2) library on the in-distribution dataset [Berkeley DeepDrive-100k](https://www.bdd100k.com/), which contains objects within autonomous driving domain. The monitors are constructed by abstraction of extracted feature from the training data. The demo showcases the monitors' capacity to reject problematic detections due to out-of-distribution(OOD) objects.
 
202
  )
203
  with gr.Row():
204
  with gr.Column():
205
+ image = gr.Image(type="filepath", label="Input")
206
  button = gr.Button("Infer")
207
  eamples_block = gr.Examples(examples, image)
208
  with gr.Column():