Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,19 +1,16 @@
|
|
1 |
# from helper import load_image_from_url, render_results_in_image
|
|
|
|
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
from transformers.utils import logging
|
5 |
logging.set_verbosity_error()
|
6 |
|
7 |
-
from helper import ignore_warnings
|
8 |
-
ignore_warnings()
|
9 |
-
|
10 |
od_pipe = pipeline("object-detection", "facebook/detr-resnet-50")
|
11 |
-
|
12 |
from PIL import Image
|
13 |
|
14 |
|
15 |
-
|
16 |
-
|
17 |
import os
|
18 |
import gradio as gr
|
19 |
|
|
|
1 |
# from helper import load_image_from_url, render_results_in_image
|
2 |
+
# from helper import ignore_warnings
|
3 |
+
# ignore_warnings()
|
4 |
+
|
5 |
from transformers import pipeline
|
6 |
|
7 |
from transformers.utils import logging
|
8 |
logging.set_verbosity_error()
|
9 |
|
|
|
|
|
|
|
10 |
od_pipe = pipeline("object-detection", "facebook/detr-resnet-50")
|
|
|
11 |
from PIL import Image
|
12 |
|
13 |
|
|
|
|
|
14 |
import os
|
15 |
import gradio as gr
|
16 |
|