Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|