Gabolozano commited on
Commit
dba19bd
1 Parent(s): 306d6e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,6 +1,8 @@
1
  import os
2
  import gradio as gr
3
 
 
 
4
  def get_pipeline_prediction(pil_image):
5
  # first get the pipeline output given the pil image
6
  pipeline_output = od_pipe(pil_image)
 
1
  import os
2
  import gradio as gr
3
 
4
+ od_pipe = pipeline("object-detection", "./models/facebook/detr-resnet-50")
5
+
6
  def get_pipeline_prediction(pil_image):
7
  # first get the pipeline output given the pil image
8
  pipeline_output = od_pipe(pil_image)