Spaces:
Running
Running
Update new_app.py
Browse files- new_app.py +7 -5
new_app.py
CHANGED
|
@@ -27,21 +27,23 @@ def get_model():
|
|
| 27 |
st.markdown("""
|
| 28 |
<style>
|
| 29 |
.block-container {
|
| 30 |
-
|
| 31 |
-
padding-top: 2.2rem; /* was 1rem */
|
| 32 |
padding-bottom: 0rem; padding-left: 5rem; padding-right: 5rem;
|
| 33 |
}
|
| 34 |
-
/* tighten the horizontal rule spacing (bring it closer to the header) */
|
| 35 |
hr {
|
| 36 |
-
margin-top: 0.25cm;
|
| 37 |
margin-bottom: 0.25cm;
|
| 38 |
}
|
| 39 |
-
/* center images if you ever use a fixed width instead of use_container_width */
|
| 40 |
.stImage img {
|
| 41 |
display: block;
|
| 42 |
margin-left: auto;
|
| 43 |
margin-right: auto;
|
| 44 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
</style>
|
| 46 |
""", unsafe_allow_html=True)
|
| 47 |
|
|
|
|
| 27 |
st.markdown("""
|
| 28 |
<style>
|
| 29 |
.block-container {
|
| 30 |
+
padding-top: 2.2rem;
|
|
|
|
| 31 |
padding-bottom: 0rem; padding-left: 5rem; padding-right: 5rem;
|
| 32 |
}
|
|
|
|
| 33 |
hr {
|
| 34 |
+
margin-top: 0.25cm;
|
| 35 |
margin-bottom: 0.25cm;
|
| 36 |
}
|
|
|
|
| 37 |
.stImage img {
|
| 38 |
display: block;
|
| 39 |
margin-left: auto;
|
| 40 |
margin-right: auto;
|
| 41 |
}
|
| 42 |
+
/* center the st.image container itself */
|
| 43 |
+
[data-testid="stImage"] {
|
| 44 |
+
display: flex;
|
| 45 |
+
justify-content: center;
|
| 46 |
+
}
|
| 47 |
</style>
|
| 48 |
""", unsafe_allow_html=True)
|
| 49 |
|