handex commited on
Commit
6e681d8
·
1 Parent(s): bda25d6

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +3 -3
src/streamlit_app.py CHANGED
@@ -15,14 +15,14 @@ CLASS_NAMES = ['cup', 'fork', 'glass', 'knife', 'plate', 'spoon']
15
  # -----------------------------------
16
  @st.cache_resource
17
  def load_model_file():
18
- model_path = os.path.join(os.path.dirname(__file__), "kitchen1.keras")
 
19
  try:
20
- # Keras 3'te model yükleme
21
  return tf.keras.models.load_model(model_path, compile=False)
22
  except Exception as e:
23
  st.error(f"Model yüklenemedi: {e}")
24
  return None
25
-
26
  model = load_model_file()
27
 
28
  # -----------------------------------
 
15
  # -----------------------------------
16
  @st.cache_resource
17
  def load_model_file():
18
+ # Uzantıyı .h5 olarak değiştirdik
19
+ model_path = os.path.join(os.path.dirname(__file__), "kitchen.h5")
20
  try:
 
21
  return tf.keras.models.load_model(model_path, compile=False)
22
  except Exception as e:
23
  st.error(f"Model yüklenemedi: {e}")
24
  return None
25
+
26
  model = load_model_file()
27
 
28
  # -----------------------------------