Spaces:
Runtime error
Runtime error
trying to print image with rectagles
Browse files
app.py
CHANGED
|
@@ -3,7 +3,6 @@ import streamlit as st
|
|
| 3 |
import numpy as np
|
| 4 |
from PIL import Image, ImageDraw
|
| 5 |
from transformers import pipeline
|
| 6 |
-
from transformers import OwlViTProcessor, OwlViTForObjectDetection
|
| 7 |
from tempfile import NamedTemporaryFile
|
| 8 |
|
| 9 |
audiopipe = pipeline("automatic-speech-recognition", model="openai/whisper-large-v3")
|
|
@@ -69,6 +68,6 @@ if st.button('apply tag'):
|
|
| 69 |
draw.rectangle((xmin, ymin, xmax, ymax), outline="red", width=1)
|
| 70 |
draw.text((xmin, ymin), f"{label}: {round(score,2)}", fill="white")
|
| 71 |
|
| 72 |
-
|
| 73 |
st.write(predictions)
|
| 74 |
|
|
|
|
| 3 |
import numpy as np
|
| 4 |
from PIL import Image, ImageDraw
|
| 5 |
from transformers import pipeline
|
|
|
|
| 6 |
from tempfile import NamedTemporaryFile
|
| 7 |
|
| 8 |
audiopipe = pipeline("automatic-speech-recognition", model="openai/whisper-large-v3")
|
|
|
|
| 68 |
draw.rectangle((xmin, ymin, xmax, ymax), outline="red", width=1)
|
| 69 |
draw.text((xmin, ymin), f"{label}: {round(score,2)}", fill="white")
|
| 70 |
|
| 71 |
+
st.image(image)
|
| 72 |
st.write(predictions)
|
| 73 |
|