Spaces:
Runtime error
Runtime error
comment temp file logic
Browse files
app.py
CHANGED
|
@@ -39,9 +39,11 @@ st.title('Upload an image file to detection')
|
|
| 39 |
|
| 40 |
uploaded_image_zero_file = st.file_uploader("Choose an image file (zero)")
|
| 41 |
texts = st.text_input('tags')
|
| 42 |
-
|
| 43 |
if uploaded_image_zero_file is not None:
|
| 44 |
image = Image.open(uploaded_image_zero_file)
|
|
|
|
|
|
|
| 45 |
outputImage = np.array(image)
|
| 46 |
predictions = detector(
|
| 47 |
image,
|
|
|
|
| 39 |
|
| 40 |
uploaded_image_zero_file = st.file_uploader("Choose an image file (zero)")
|
| 41 |
texts = st.text_input('tags')
|
| 42 |
+
|
| 43 |
if uploaded_image_zero_file is not None:
|
| 44 |
image = Image.open(uploaded_image_zero_file)
|
| 45 |
+
#temp.write(uploaded_image_file.getvalue())
|
| 46 |
+
#temp.seek(0)
|
| 47 |
outputImage = np.array(image)
|
| 48 |
predictions = detector(
|
| 49 |
image,
|