w3robotics commited on
Commit
0692ff6
·
verified ·
1 Parent(s): 4efde03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -21
app.py CHANGED
@@ -1,5 +1,30 @@
1
  import streamlit as st
2
  import os
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  path = "/data"
5
 
@@ -32,26 +57,5 @@ for root, dirs, file_names in os.walk(path):
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
 
 
1
  import streamlit as st
2
  import os
3
+ from streamlit_extras.stylable_container import stylable_container
4
+
5
+ st.markdown(
6
+ '<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"/>',
7
+ unsafe_allow_html=True,
8
+ )
9
+
10
+ with stylable_container(
11
+ key="container_with_border",
12
+ css_styles=r"""
13
+ button p:before {
14
+ font-family: 'Font Awesome 5 Free';
15
+ content: '\f1c2';
16
+ display: inline-block;
17
+ padding-right: 3px;
18
+ vertical-align: middle;
19
+ font-weight: 900;
20
+ }
21
+ """,
22
+ ):
23
+ st.button("Upload File")
24
+
25
+ <i class="fa-solid fa-file-arrow-up"></i>
26
+
27
+
28
 
29
  path = "/data"
30
 
 
57
 
58
  st.write(files)
59
 
 
 
 
 
 
 
 
60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61