lanna_lalala;- commited on
Commit
42a61a3
·
1 Parent(s): eee2aab

welcome css try

Browse files
Files changed (1) hide show
  1. phase/welcome.py +5 -1
phase/welcome.py CHANGED
@@ -1,11 +1,15 @@
1
  import streamlit as st
2
- from PIL import Image
3
  import base64
4
 
5
  def get_base64_img(image_path):
 
 
 
6
  with open(image_path, "rb") as f:
7
  return base64.b64encode(f.read()).decode()
8
 
 
9
  def show_page():
10
  st.title("💹 Welcome to $mart Kids App")
11
 
 
1
  import streamlit as st
2
+ import os
3
  import base64
4
 
5
  def get_base64_img(image_path):
6
+ if not os.path.exists(image_path):
7
+ print(f"[WARNING] Missing image: {image_path}")
8
+ return ""
9
  with open(image_path, "rb") as f:
10
  return base64.b64encode(f.read()).decode()
11
 
12
+
13
  def show_page():
14
  st.title("💹 Welcome to $mart Kids App")
15