Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,3 +31,27 @@ for root, dirs, file_names in os.walk(path):
|
|
31 |
files.append(os.path.join(root, file_name))
|
32 |
|
33 |
st.write(files)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
files.append(os.path.join(root, file_name))
|
32 |
|
33 |
st.write(files)
|
34 |
+
|
35 |
+
from streamlit_extras.stylable_container import stylable_container
|
36 |
+
|
37 |
+
st.markdown(
|
38 |
+
'<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"/>',
|
39 |
+
unsafe_allow_html=True,
|
40 |
+
)
|
41 |
+
|
42 |
+
|
43 |
+
with stylable_container(
|
44 |
+
key="container_with_border",
|
45 |
+
css_styles=r"""
|
46 |
+
button p:before {
|
47 |
+
font-family: 'Font Awesome 5 Free';
|
48 |
+
content: '\f1c1';
|
49 |
+
display: inline-block;
|
50 |
+
padding-right: 3px;
|
51 |
+
vertical-align: middle;
|
52 |
+
font-weight: 900;
|
53 |
+
}
|
54 |
+
""",
|
55 |
+
):
|
56 |
+
st.button("Button with icon")
|
57 |
+
|