iabrarzelaci commited on
Commit
6618541
·
verified ·
1 Parent(s): da12398

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +4 -2
src/streamlit_app.py CHANGED
@@ -33,7 +33,9 @@ col1, col2 = st.columns([1, 4])
33
  with col1:
34
  try:
35
  #logo_path = get_image_path("chyaka_logof.png")
36
- logo_path = "./src/chyaka_logof.png"
 
 
37
  st.image(logo_path, width=150)
38
  except:
39
  st.empty()
@@ -51,7 +53,7 @@ print("Current working directory:", os.getcwd())
51
  print("Files in current directory:", os.listdir())
52
 
53
  try:
54
- with open("./src/product_catalog.json", "r", encoding="utf-8") as f:
55
  products = json.load(f)
56
  except FileNotFoundError:
57
  st.error("⚠️ تعذر تحميل المنتجات – تحقق من وجود ملف 'product_catalog.json'")
 
33
  with col1:
34
  try:
35
  #logo_path = get_image_path("chyaka_logof.png")
36
+ #logo_path = "./src/chyaka_logof.png"
37
+ logo_path = "./src/assets/chyaka_logof.png"
38
+
39
  st.image(logo_path, width=150)
40
  except:
41
  st.empty()
 
53
  print("Files in current directory:", os.listdir())
54
 
55
  try:
56
+ with open("./src/product_data/product_catalog.json", "r", encoding="utf-8") as f:
57
  products = json.load(f)
58
  except FileNotFoundError:
59
  st.error("⚠️ تعذر تحميل المنتجات – تحقق من وجود ملف 'product_catalog.json'")