Spaces:
Runtime error
Runtime error
Commit
·
dd335bc
1
Parent(s):
cf1f1df
app.py
CHANGED
|
@@ -42,6 +42,11 @@ images[index] = ImageOps.expand(Image.open(io.BytesIO(requests.get(images[index]
|
|
| 42 |
caps = list(range(10))
|
| 43 |
cap = str(index)
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
if st.session_state.show:
|
| 46 |
caps[idx] = f'{idx} (TARGET IMAGE)'
|
| 47 |
if idx == index:
|
|
@@ -51,10 +56,5 @@ else:
|
|
| 51 |
if idx == index:
|
| 52 |
cap = f'{idx}'
|
| 53 |
|
| 54 |
-
if col1.button('Show groundtruth target image'):
|
| 55 |
-
st.session_state.show = True
|
| 56 |
-
if col1.button('Hide groundtruth target image'):
|
| 57 |
-
st.session_state.show = False
|
| 58 |
-
|
| 59 |
col1.image(img, use_column_width=True, caption=cap)
|
| 60 |
col2.image(images, width=175, caption=caps)
|
|
|
|
| 42 |
caps = list(range(10))
|
| 43 |
cap = str(index)
|
| 44 |
|
| 45 |
+
if col1.button('Show groundtruth target image'):
|
| 46 |
+
st.session_state.show = True
|
| 47 |
+
if col1.button('Hide groundtruth target image'):
|
| 48 |
+
st.session_state.show = False
|
| 49 |
+
|
| 50 |
if st.session_state.show:
|
| 51 |
caps[idx] = f'{idx} (TARGET IMAGE)'
|
| 52 |
if idx == index:
|
|
|
|
| 56 |
if idx == index:
|
| 57 |
cap = f'{idx}'
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
col1.image(img, use_column_width=True, caption=cap)
|
| 60 |
col2.image(images, width=175, caption=caps)
|