Spaces:
Sleeping
Sleeping
Update pages/Visualization.py
Browse files- pages/Visualization.py +3 -1
pages/Visualization.py
CHANGED
@@ -26,7 +26,6 @@ if image_gen__btn:
|
|
26 |
try:
|
27 |
image_bytes = generate_img({"inputs": image_idea})
|
28 |
image_raw = io.BytesIO(image_bytes)
|
29 |
-
#except UnidentifiedImageError:
|
30 |
st.success('Готово')
|
31 |
st.image(image_raw)
|
32 |
st.markdown('## Опишите фотографию на английском языке')
|
@@ -37,6 +36,9 @@ if image_gen__btn:
|
|
37 |
st.markdown('+ whether you like the picture or not;')
|
38 |
st.markdown('+ why.')
|
39 |
st.markdown('Start with: “I’d like to describe this picture. The picture shows …” ')
|
|
|
|
|
|
|
40 |
|
41 |
st.divider()
|
42 |
|
|
|
26 |
try:
|
27 |
image_bytes = generate_img({"inputs": image_idea})
|
28 |
image_raw = io.BytesIO(image_bytes)
|
|
|
29 |
st.success('Готово')
|
30 |
st.image(image_raw)
|
31 |
st.markdown('## Опишите фотографию на английском языке')
|
|
|
36 |
st.markdown('+ whether you like the picture or not;')
|
37 |
st.markdown('+ why.')
|
38 |
st.markdown('Start with: “I’d like to describe this picture. The picture shows …” ')
|
39 |
+
except UnidentifiedImageError:
|
40 |
+
st.warning('This is a warning', icon="⚠️")
|
41 |
+
|
42 |
|
43 |
st.divider()
|
44 |
|