chiichann commited on
Commit
08ce6c7
·
verified ·
1 Parent(s): 0f7839d

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +15 -0
src/streamlit_app.py CHANGED
@@ -6,6 +6,12 @@ import os
6
  import platform
7
  from tensorflow.keras.preprocessing.image import img_to_array
8
 
 
 
 
 
 
 
9
  # Constants
10
  IMG_SIZE = 128
11
  CLASS_NAMES = ['cardboard', 'glass', 'metal', 'paper', 'plastic']
@@ -99,3 +105,12 @@ def main():
99
 
100
  if __name__ == "__main__":
101
  main()
 
 
 
 
 
 
 
 
 
 
6
  import platform
7
  from tensorflow.keras.preprocessing.image import img_to_array
8
 
9
+ # Safely get the directory of the current script (works locally and on hosted platforms)
10
+ try:
11
+ current_dir = os.path.dirname(__file__)
12
+ except NameError:
13
+ current_dir = os.getcwd()
14
+
15
  # Constants
16
  IMG_SIZE = 128
17
  CLASS_NAMES = ['cardboard', 'glass', 'metal', 'paper', 'plastic']
 
105
 
106
  if __name__ == "__main__":
107
  main()
108
+
109
+ # Footer
110
+ st.markdown("---")
111
+ st.markdown(
112
+ "<div style='text-align: center; color: gray;'>"
113
+ "© 2025 Trash Sort App. Developed by <b>Cherilyn</b>."
114
+ "</div>",
115
+ unsafe_allow_html=True
116
+ )