CosmickVisions commited on
Commit
b16e33e
·
verified ·
1 Parent(s): d44dfe0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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://wallpapers.com/images/featured/skrwoybjif4j8l2j.jpg" # Corporate Image
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/jpeg;base64,{image_base64});
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;