Update app.py
Browse files
app.py
CHANGED
@@ -2,15 +2,25 @@ import streamlit as st
|
|
2 |
from pytube import YouTube
|
3 |
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
st.markdown(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
class YouTubeDownloader:
|
16 |
@staticmethod
|
|
|
2 |
from pytube import YouTube
|
3 |
|
4 |
|
5 |
+
def set_bg_hack_url():
|
6 |
+
'''
|
7 |
+
A function to unpack an image from url and set as bg.
|
8 |
+
Returns
|
9 |
+
-------
|
10 |
+
The background.
|
11 |
+
'''
|
12 |
+
|
13 |
+
st.markdown(
|
14 |
+
f"""
|
15 |
+
<style>
|
16 |
+
.stApp {{
|
17 |
+
background: url("https://cdn.pixabay.com/photo/2020/06/19/22/33/wormhole-5319067_960_720.jpg");
|
18 |
+
background-size: cover
|
19 |
+
}}
|
20 |
+
</style>
|
21 |
+
""",
|
22 |
+
unsafe_allow_html=True
|
23 |
+
)
|
24 |
|
25 |
class YouTubeDownloader:
|
26 |
@staticmethod
|