Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,14 +90,12 @@ with col2:
|
|
| 90 |
img_style={"margin": "5px", "height": "150px"},
|
| 91 |
key="cropped_images"
|
| 92 |
)
|
| 93 |
-
st.write('clicked')
|
| 94 |
-
st.write(clicked)
|
| 95 |
|
| 96 |
with col3:
|
| 97 |
st.header('details')
|
| 98 |
if gibsOk:
|
| 99 |
detectorForContents = pipeline("object-detection", model="sergioska/yolo-finetuned-flyers-content")
|
| 100 |
-
imageForDetails = Image.open(imagesForOpen[
|
| 101 |
outputImageForDetails = np.array(imageForDetails)
|
| 102 |
predictionsForDetails = detectorForContents(
|
| 103 |
imageForDetails,
|
|
|
|
| 90 |
img_style={"margin": "5px", "height": "150px"},
|
| 91 |
key="cropped_images"
|
| 92 |
)
|
|
|
|
|
|
|
| 93 |
|
| 94 |
with col3:
|
| 95 |
st.header('details')
|
| 96 |
if gibsOk:
|
| 97 |
detectorForContents = pipeline("object-detection", model="sergioska/yolo-finetuned-flyers-content")
|
| 98 |
+
imageForDetails = Image.open(imagesForOpen[clicked])
|
| 99 |
outputImageForDetails = np.array(imageForDetails)
|
| 100 |
predictionsForDetails = detectorForContents(
|
| 101 |
imageForDetails,
|