Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
from transformers import pipeline
|
| 2 |
-
|
| 3 |
def prettier(results):
|
| 4 |
for item in results:
|
| 5 |
score = round(item['score'], 3)
|
|
@@ -11,5 +11,5 @@ pipe = pipeline("object-detection", model="facebook/detr-resnet-50")
|
|
| 11 |
output = pipe("multi-object.jpg")
|
| 12 |
print("Object Detection: ")
|
| 13 |
prettier(output)
|
| 14 |
-
|
| 15 |
|
|
|
|
| 1 |
from transformers import pipeline
|
| 2 |
+
from streamlit as st
|
| 3 |
def prettier(results):
|
| 4 |
for item in results:
|
| 5 |
score = round(item['score'], 3)
|
|
|
|
| 11 |
output = pipe("multi-object.jpg")
|
| 12 |
print("Object Detection: ")
|
| 13 |
prettier(output)
|
| 14 |
+
st.write(output)
|
| 15 |
|