Spaces:
Sleeping
Sleeping
Update pages/Visualization.py
Browse files- pages/Visualization.py +3 -3
pages/Visualization.py
CHANGED
@@ -32,10 +32,10 @@ st.markdown("# :sparkles: Изучение английского языка ч
|
|
32 |
image_idea = st.text_input('Предложите свою тему для генерации изображения', value="Astronaut riding a horse")
|
33 |
image_gen__btn = st.button('Генерировать изображение')
|
34 |
if image_gen__btn:
|
35 |
-
with st.spinner('
|
36 |
image_bytes = generate_img({"inputs": image_idea})
|
37 |
image_raw = io.BytesIO(image_bytes)
|
38 |
-
st.success('Готово')
|
39 |
st.image(image_raw)
|
40 |
st.markdown('## Опишите фотографию на английском языке')
|
41 |
st.markdown('## План ответа поможет вам:')
|
@@ -45,6 +45,6 @@ if image_gen__btn:
|
|
45 |
st.markdown('+ whether you like the picture or not;')
|
46 |
st.markdown('+ why.')
|
47 |
st.markdown('Start with: “I’d like to describe this picture. The picture shows …” ')
|
48 |
-
|
49 |
|
50 |
st.divider()
|
|
|
32 |
image_idea = st.text_input('Предложите свою тему для генерации изображения', value="Astronaut riding a horse")
|
33 |
image_gen__btn = st.button('Генерировать изображение')
|
34 |
if image_gen__btn:
|
35 |
+
with st.spinner('Загрузка изображения...'):
|
36 |
image_bytes = generate_img({"inputs": image_idea})
|
37 |
image_raw = io.BytesIO(image_bytes)
|
38 |
+
#st.success('Готово')
|
39 |
st.image(image_raw)
|
40 |
st.markdown('## Опишите фотографию на английском языке')
|
41 |
st.markdown('## План ответа поможет вам:')
|
|
|
45 |
st.markdown('+ whether you like the picture or not;')
|
46 |
st.markdown('+ why.')
|
47 |
st.markdown('Start with: “I’d like to describe this picture. The picture shows …” ')
|
48 |
+
st.success('Готово')
|
49 |
|
50 |
st.divider()
|