Ritobrata Ghosh
commited on
Commit
路
c1cfda4
1
Parent(s):
527f0c8
app sidebar + improvements
Browse filesFormer-commit-id: d1805283e637a3711556242350471b6b15ee2b80
- app/app.py +14 -3
app/app.py
CHANGED
|
@@ -7,10 +7,21 @@ from dalle_mini.helpers import captioned_strip
|
|
| 7 |
|
| 8 |
import streamlit as st
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
-
st.
|
| 12 |
-
|
| 13 |
-
st.header('DALL-E mini')
|
| 14 |
st.subheader('Generate images from a text prompt')
|
| 15 |
|
| 16 |
prompt = st.text_input("What do you want to see?")
|
|
|
|
| 7 |
|
| 8 |
import streamlit as st
|
| 9 |
|
| 10 |
+
st.sidebar.title("DALL-E Mini")
|
| 11 |
+
|
| 12 |
+
sc = st.sidebar.beta_columns(2)
|
| 13 |
+
sc[0].image('../img/logo.png', width=150)
|
| 14 |
+
sc[1].write(" ")
|
| 15 |
+
sc[1].markdown("Generate images from a text prompt")
|
| 16 |
+
st.sidebar.markdown("""
|
| 17 |
+
##### Dall-E Mini
|
| 18 |
+
___
|
| 19 |
+
Dall-E Mini is an AI model that generates images of your prompt!
|
| 20 |
+
|
| 21 |
+
Created by Boris Dayma et al. 2021 | [GitHub](https://github.com/borisdayma/dalle-mini) | See [Report](https://wandb.ai/dalle-mini/dalle-mini/reports/DALL-E-mini--Vmlldzo4NjIxODA)
|
| 22 |
+
""")
|
| 23 |
|
| 24 |
+
st.header('DALL-E mini Demo')
|
|
|
|
|
|
|
| 25 |
st.subheader('Generate images from a text prompt')
|
| 26 |
|
| 27 |
prompt = st.text_input("What do you want to see?")
|