Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def load_image(image_url):
|
|
47 |
# ----Function to make and convert background to base 64 code-----
|
48 |
def set_background():
|
49 |
"""Sets the background image using base64 encoding."""
|
50 |
-
image_url = "https://
|
51 |
image_data = load_image(image_url)
|
52 |
if image_data:
|
53 |
# Convert bytes to base64
|
@@ -56,7 +56,7 @@ def set_background():
|
|
56 |
f"""
|
57 |
<style>
|
58 |
.stApp {{
|
59 |
-
background-image: url(data:image/
|
60 |
background-size: cover;
|
61 |
background-position: center center;
|
62 |
background-attachment: fixed;
|
|
|
47 |
# ----Function to make and convert background to base 64 code-----
|
48 |
def set_background():
|
49 |
"""Sets the background image using base64 encoding."""
|
50 |
+
image_url = "https://www.nasa.gov/sites/default/files/thumbnails/image/web_first_images_release.png" # NASA Image
|
51 |
image_data = load_image(image_url)
|
52 |
if image_data:
|
53 |
# Convert bytes to base64
|
|
|
56 |
f"""
|
57 |
<style>
|
58 |
.stApp {{
|
59 |
+
background-image: url(data:image/png;base64,{image_base64});
|
60 |
background-size: cover;
|
61 |
background-position: center center;
|
62 |
background-attachment: fixed;
|