GMARTINEZMILLA commited on
Commit
540d3c1
·
1 Parent(s): 02c25ad

bug fix:return in line 135

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -132,7 +132,7 @@ elif page == "Customer Analysis":
132
  st.write(f"Customer {customer_code} belongs to cluster {cluster}")
133
  else:
134
  st.error(f"Customer {customer_code} not found in customer_clusters.")
135
- return # Stop further execution if no cluster is found
136
 
137
  # **Step 2: Load the Corresponding Model**
138
  model_path = f'models/modelo_cluster_{cluster}.txt'
 
132
  st.write(f"Customer {customer_code} belongs to cluster {cluster}")
133
  else:
134
  st.error(f"Customer {customer_code} not found in customer_clusters.")
135
+ st.stop() # Stop further execution if no cluster is found
136
 
137
  # **Step 2: Load the Corresponding Model**
138
  model_path = f'models/modelo_cluster_{cluster}.txt'