Spaces:
Running
Running
Pedro Cuenca
commited on
Commit
·
c286f15
1
Parent(s):
32f68a8
Use one column in the sidebar, center logo.
Browse filesNote: we have to use HTML and _refer to an external image URL_ to achieve
this. We are grabbing the logo from the github repo.
Former-commit-id: 619fa282dd4771358a5c0c1687497123c17e56f7
- app/app.py +16 -6
app/app.py
CHANGED
|
@@ -6,14 +6,24 @@ from dalle_mini.backend import ServiceError, get_images_from_backend
|
|
| 6 |
|
| 7 |
import streamlit as st
|
| 8 |
|
| 9 |
-
st.sidebar.title("DALL-E Mini")
|
| 10 |
|
| 11 |
-
sc = st.sidebar.beta_columns(2)
|
| 12 |
-
|
| 13 |
-
sc[1].write(" ")
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
st.sidebar.markdown("""
|
| 16 |
-
##### Dall-E Mini
|
| 17 |
___
|
| 18 |
Dall-E Mini is an AI model that generates images from any prompt you give it!
|
| 19 |
|
|
|
|
| 6 |
|
| 7 |
import streamlit as st
|
| 8 |
|
| 9 |
+
# st.sidebar.title("DALL-E Mini")
|
| 10 |
|
| 11 |
+
# sc = st.sidebar.beta_columns(2)
|
| 12 |
+
# st.sidebar.image('../img/logo.png', width=150)
|
| 13 |
+
# sc[1].write(" ")
|
| 14 |
+
# st.sidebar.markdown("Generate images from text")
|
| 15 |
+
|
| 16 |
+
st.sidebar.markdown("""
|
| 17 |
+
<style>
|
| 18 |
+
.aligncenter {
|
| 19 |
+
text-align: center;
|
| 20 |
+
}
|
| 21 |
+
</style>
|
| 22 |
+
<p class="aligncenter">
|
| 23 |
+
<img src="https://raw.githubusercontent.com/borisdayma/dalle-mini/main/img/logo.png"/>
|
| 24 |
+
</p>
|
| 25 |
+
""", unsafe_allow_html=True)
|
| 26 |
st.sidebar.markdown("""
|
|
|
|
| 27 |
___
|
| 28 |
Dall-E Mini is an AI model that generates images from any prompt you give it!
|
| 29 |
|