akhaliq HF staff commited on
Commit
b2b1624
1 Parent(s): 633b1e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -33,4 +33,11 @@ def inference(img):
33
  da_out = da_seg_out[0][0, :, :].detach().numpy()
34
  return da_out,ll_out
35
 
36
- gr.Interface(inference,gr.inputs.Image(type="pil"),["image","image"]).launch(debug=True)
 
 
 
 
 
 
 
 
33
  da_out = da_seg_out[0][0, :, :].detach().numpy()
34
  return da_out,ll_out
35
 
36
+ title="YOLOP"
37
+ description="Gradio demo for YOLOP: YOLOP pretrained on the BDD100K dataset. To use it, simply upload your image or click on one of the examples to load them. Read more at the links below"
38
+
39
+ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2108.11250' target='_blank'>YOLOP: You Only Look Once for Panoptic Driving Perception</a> | <a href='https://github.com/hustvl/YOLOP' target='_blank'>Github Repo</a></p>"
40
+
41
+ examples=[['frame_00_delay-0.13s.jpg']]
42
+
43
+ gr.Interface(inference,gr.inputs.Image(type="pil"),["image","image"],article=article,description=description,title=title,examples=examples).launch(debug=True)