Pedro Cuenca
Retire demo code, replace with links to new space.
5d07e74
raw
history blame
1.42 kB
#!/usr/bin/env python
# coding: utf-8
import streamlit as st
st.sidebar.markdown(
"""
<style>
.aligncenter {
text-align: center;
}
</style>
<p class="aligncenter">
<img src="https://raw.githubusercontent.com/borisdayma/dalle-mini/main/img/logo.png"/>
</p>
""",
unsafe_allow_html=True,
)
st.sidebar.markdown(
"""
___
<p style='text-align: center'>
DALL·E mini is an AI model that generates images from any prompt you give!
</p>
<p style='text-align: center'>
Created by Boris Dayma et al. 2021
<br/>
<a href="https://github.com/borisdayma/dalle-mini" target="_blank">GitHub</a> | <a href="https://wandb.ai/dalle-mini/dalle-mini/reports/DALL-E-mini--Vmlldzo4NjIxODA" target="_blank">Project Report</a>
</p>
""",
unsafe_allow_html=True,
)
st.header("DALL·E mini")
st.subheader("Generate images from text")
container = st.empty()
container.markdown(
f"""
A new demo with a better model is now available [in this space](https://huggingface.co/spaces/dalle-mini/dalle-mini)! Check it out!
For more information about the project, please visit:
* [Our GitHub repository](https://github.com/borisdayma/dalle-mini).
* [The project report](https://wandb.ai/dalle-mini/dalle-mini/reports/DALL-E-mini--Vmlldzo4NjIxODA) we wrote during the initial JAX-Flax sprint organized by 🤗 Hugging Face.
Stay tuned for larger and better models, and more technical details!
"""
)