Geek7 commited on
Commit
319dbac
·
1 Parent(s): 4c4588c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -9
app.py CHANGED
@@ -2,15 +2,25 @@ import streamlit as st
2
  from pytube import YouTube
3
 
4
 
5
- page_bg_img = """
6
- <style>
7
- background-image:url("colors-pattern.gif”)
8
- background-size: cover
9
-
10
- </style>
11
- """
12
-
13
- st.markdown( page_bg_img, unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
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