Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,6 @@ from PIL import Image
|
|
| 7 |
from transformers import AutoFeatureExtractor, DetrForObjectDetection, YolosForObjectDetection
|
| 8 |
|
| 9 |
import os
|
| 10 |
-
os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE"
|
| 11 |
|
| 12 |
# colors for visualization
|
| 13 |
COLORS = [
|
|
@@ -99,8 +98,6 @@ gr.Interface(
|
|
| 99 |
gr.Textbox(lines=1,label='Enter valid image URL here..'),
|
| 100 |
gr.Image(type='pil'),
|
| 101 |
gr.Slider(minimum=0.2,maximum=1,value=0.7,label='Prediction Threshold')],
|
| 102 |
-
outputs=gr.Image(),
|
| 103 |
title = title,
|
| 104 |
-
description=description
|
| 105 |
-
|
| 106 |
-
).launch()
|
|
|
|
| 7 |
from transformers import AutoFeatureExtractor, DetrForObjectDetection, YolosForObjectDetection
|
| 8 |
|
| 9 |
import os
|
|
|
|
| 10 |
|
| 11 |
# colors for visualization
|
| 12 |
COLORS = [
|
|
|
|
| 98 |
gr.Textbox(lines=1,label='Enter valid image URL here..'),
|
| 99 |
gr.Image(type='pil'),
|
| 100 |
gr.Slider(minimum=0.2,maximum=1,value=0.7,label='Prediction Threshold')],
|
| 101 |
+
outputs=gr.Image(shape=(450,450),
|
| 102 |
title = title,
|
| 103 |
+
description=description).launch()
|
|
|
|
|
|