username23231 commited on
Commit
048e033
·
1 Parent(s): 662581d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -16
app.py CHANGED
@@ -4,24 +4,8 @@ with st.form(key='my_form'):
4
  text_input = st.text_input(label='Username')
5
  submit_button = st.form_submit_button(label='Submit')
6
 
7
- def local_css(file_name):
8
- with open(file_name) as f:
9
- st.markdown(f'<style>{f.read()}</style>', unsafe_allow_html=True)
10
-
11
- def remote_css(url):
12
- st.markdown(f'<link href="{url}" rel="stylesheet">', unsafe_allow_html=True)
13
-
14
  def style_css(url):
15
  st.markdown(f'<link href="{url}" rel="stylesheet">', unsafe_allow_html=True)
16
 
17
-
18
- def icon(icon_name):
19
- st.markdown(f'<i class="material-icons">{icon_name}</i>', unsafe_allow_html=True)
20
-
21
  style_css("https://huggingface.co/spaces/ports/discussion/raw/main/style.css")
22
- local_css("style.css")
23
- remote_css('https://fonts.googleapis.com/icon?family=Material+Icons')
24
 
25
- icon("search")
26
- selected = st.text_input("", "Search...")
27
- button_clicked = st.button("OK")
 
4
  text_input = st.text_input(label='Username')
5
  submit_button = st.form_submit_button(label='Submit')
6
 
 
 
 
 
 
 
 
7
  def style_css(url):
8
  st.markdown(f'<link href="{url}" rel="stylesheet">', unsafe_allow_html=True)
9
 
 
 
 
 
10
  style_css("https://huggingface.co/spaces/ports/discussion/raw/main/style.css")
 
 
11