Spaces:
Runtime error
Runtime error
Commit
·
8565080
1
Parent(s):
d2e5b38
update css
Browse files- app.py +15 -1
- charts.py +1 -0
- st_helpers.py +8 -1
- static/content_style.css +2 -2
app.py
CHANGED
|
@@ -6,7 +6,7 @@ If you're not a hedgehog, you shouldn't reuse this code. Use this instead: https
|
|
| 6 |
import streamlit as st
|
| 7 |
|
| 8 |
|
| 9 |
-
from st_helpers import make_header, content_text, cite
|
| 10 |
from charts import draw_current_progress
|
| 11 |
|
| 12 |
st.set_page_config(page_title="Training Transformers Together", layout="centered")
|
|
@@ -28,3 +28,17 @@ All it takes is for a bunch of us to come together. In fact, we're doing it righ
|
|
| 28 |
""", vspace_before=12, vspace_after=16)
|
| 29 |
|
| 30 |
draw_current_progress()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
import streamlit as st
|
| 7 |
|
| 8 |
|
| 9 |
+
from st_helpers import make_header, content_text, content_title, cite
|
| 10 |
from charts import draw_current_progress
|
| 11 |
|
| 12 |
st.set_page_config(page_title="Training Transformers Together", layout="centered")
|
|
|
|
| 28 |
""", vspace_before=12, vspace_after=16)
|
| 29 |
|
| 30 |
draw_current_progress()
|
| 31 |
+
|
| 32 |
+
content_text(f"""
|
| 33 |
+
The model we're training is called DALLE: a transformer "language model" that generates images from text description.
|
| 34 |
+
We're training this model on <a href=https://laion.ai/laion-400-open-dataset/>LAION</a> - the world's largest openly available
|
| 35 |
+
image-text-pair dataset with 400 million samples.
|
| 36 |
+
<b>TODO</b> You see a short description of training dataset, model architecture and training configuration.
|
| 37 |
+
In includes all necessary citations and, most importantly, a down-to-earth explanation of what exactly is dalle.
|
| 38 |
+
It properly refers the communities that provided data, the source codebase and provides necessary links.
|
| 39 |
+
""")
|
| 40 |
+
|
| 41 |
+
content_title("How do I join?")
|
| 42 |
+
|
| 43 |
+
content_text("For the sake of ")
|
| 44 |
+
|
charts.py
CHANGED
|
@@ -35,6 +35,7 @@ def draw_current_progress():
|
|
| 35 |
use_container_width=True,
|
| 36 |
)
|
| 37 |
|
|
|
|
| 38 |
with st.expander("Who's training?", expanded=False):
|
| 39 |
st.markdown("### Collaborative training participants\n(may take a few seconds to load)")
|
| 40 |
|
|
|
|
| 35 |
use_container_width=True,
|
| 36 |
)
|
| 37 |
|
| 38 |
+
def draw_participant_bubbles():
|
| 39 |
with st.expander("Who's training?", expanded=False):
|
| 40 |
st.markdown("### Collaborative training participants\n(may take a few seconds to load)")
|
| 41 |
|
st_helpers.py
CHANGED
|
@@ -19,8 +19,15 @@ def make_header():
|
|
| 19 |
st.markdown(f"<style>{content_style_css}</style>", unsafe_allow_html=True) # apply css to the rest of the document
|
| 20 |
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
def content_text(text: str, vspace_before: int = 0, vspace_after: int = 0):
|
| 23 |
-
st.markdown(f'<center><div class="padded faded
|
| 24 |
f'style="padding-top: {vspace_before}px; padding-bottom: {vspace_after}px; text-align: justify;">'
|
| 25 |
f'{text}</div><center>',
|
| 26 |
unsafe_allow_html=True)
|
|
|
|
| 19 |
st.markdown(f"<style>{content_style_css}</style>", unsafe_allow_html=True) # apply css to the rest of the document
|
| 20 |
|
| 21 |
|
| 22 |
+
def content_title(title: str, vspace_before: int = 0, vspace_after: int = 0):
|
| 23 |
+
st.markdown(f'<center><div class="padded faded demo_title" '
|
| 24 |
+
f'style="padding-top: {vspace_before}px; padding-bottom: {vspace_after}px; text-align: justify;">'
|
| 25 |
+
f'{title}</div><center>',
|
| 26 |
+
unsafe_allow_html=True)
|
| 27 |
+
|
| 28 |
+
|
| 29 |
def content_text(text: str, vspace_before: int = 0, vspace_after: int = 0):
|
| 30 |
+
st.markdown(f'<center><div class="padded faded demo_text" '
|
| 31 |
f'style="padding-top: {vspace_before}px; padding-bottom: {vspace_after}px; text-align: justify;">'
|
| 32 |
f'{text}</div><center>',
|
| 33 |
unsafe_allow_html=True)
|
static/content_style.css
CHANGED
|
@@ -11,13 +11,13 @@
|
|
| 11 |
max-width: 800px;
|
| 12 |
text-align: left;
|
| 13 |
}
|
| 14 |
-
.
|
| 15 |
font-size: 32px;
|
| 16 |
box-shadow: 0 0 5px 5px var(--window-color);
|
| 17 |
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,
|
| 18 |
sans-serif,Apple Color Emoji,Segoe UI Emoji;
|
| 19 |
}
|
| 20 |
-
.
|
| 21 |
font-size: 16px;
|
| 22 |
box-shadow: 0 0 5px 5px var(--window-color);
|
| 23 |
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,
|
|
|
|
| 11 |
max-width: 800px;
|
| 12 |
text-align: left;
|
| 13 |
}
|
| 14 |
+
.demo_title {
|
| 15 |
font-size: 32px;
|
| 16 |
box-shadow: 0 0 5px 5px var(--window-color);
|
| 17 |
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,
|
| 18 |
sans-serif,Apple Color Emoji,Segoe UI Emoji;
|
| 19 |
}
|
| 20 |
+
.demo_text {
|
| 21 |
font-size: 16px;
|
| 22 |
box-shadow: 0 0 5px 5px var(--window-color);
|
| 23 |
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,
|