danielle2003 commited on
Commit
2d180e6
·
verified ·
1 Parent(s): 1022f34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -58,9 +58,9 @@ def predict_image(image):
58
  image = np.expand_dims(image, axis=0)
59
  predictions = st.session_state.model.predict(image)
60
  return predictions
61
- logo_path = "images/tensorflow.png"
62
  main_bg_ext = 'png'
63
- main_bg = 'images/bg1.jpg'
64
  # Read and encode the logo image
65
  with open(logo_path, "rb") as image_file:
66
  encoded_logo = base64.b64encode(image_file.read()).decode()
@@ -495,7 +495,7 @@ if page == "Home":
495
 
496
  #components.html(html_string) # JavaScript works
497
  #st.markdown(html_string, unsafe_allow_html=True)
498
- image_path = "images/download.jfif"
499
 
500
  st.container()
501
  st.markdown(f"""
@@ -585,7 +585,7 @@ if page == "Home":
585
  # Render the content
586
  st.markdown(content, unsafe_allow_html=True)
587
  else:
588
- default_image_path = "images/download.jfif"
589
  with open(image_path, "rb") as image_file:
590
  encoded_image = base64.b64encode(image_file.read()).decode()
591
 
 
58
  image = np.expand_dims(image, axis=0)
59
  predictions = st.session_state.model.predict(image)
60
  return predictions
61
+ logo_path = "tensorflow.png"
62
  main_bg_ext = 'png'
63
+ main_bg = 'bg1.jpg'
64
  # Read and encode the logo image
65
  with open(logo_path, "rb") as image_file:
66
  encoded_logo = base64.b64encode(image_file.read()).decode()
 
495
 
496
  #components.html(html_string) # JavaScript works
497
  #st.markdown(html_string, unsafe_allow_html=True)
498
+ image_path = "load.png"
499
 
500
  st.container()
501
  st.markdown(f"""
 
585
  # Render the content
586
  st.markdown(content, unsafe_allow_html=True)
587
  else:
588
+ default_image_path = "load.png"
589
  with open(image_path, "rb") as image_file:
590
  encoded_image = base64.b64encode(image_file.read()).decode()
591