Geek7 commited on
Commit
b856aeb
·
1 Parent(s): 9d31ccb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -1,8 +1,13 @@
1
  import streamlit as st
2
  from pytube import YouTube
3
 
4
- with open('style.css') as f:
5
- st.markdown(f'<style>{f.read()}</style>',unsafe_allow_html=True)
 
 
 
 
 
6
 
7
  class YouTubeDownloader:
8
  @staticmethod
 
1
  import streamlit as st
2
  from pytube import YouTube
3
 
4
+ # Use local CSS
5
+ def local_css(file_name):
6
+ with open(file_name) as f:
7
+ st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
8
+
9
+
10
+ local_css("style.css")
11
 
12
  class YouTubeDownloader:
13
  @staticmethod