jaifar530 commited on
Commit
0717381
·
unverified ·
1 Parent(s): 0244547
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -234,13 +234,13 @@ def AI_vs_AI_RandomForest_88_Samples(df):
234
  with open('AI_vs_AI_RandomForest_88_Samples.pkl', 'wb') as file:
235
  file.write(response.content)
236
  except Exception as e:
237
- st.write(f"An error occurred: {str(e)}")
238
 
239
  try:
240
  with open('AI_vs_AI_RandomForest_88_Samples.pkl', 'rb') as file:
241
  clf_loaded = pickle.load(file)
242
  except Exception as e:
243
- st.write(f"An error occurred: {str(e)}")
244
  return # This will exit the function
245
 
246
 
 
234
  with open('AI_vs_AI_RandomForest_88_Samples.pkl', 'wb') as file:
235
  file.write(response.content)
236
  except Exception as e:
237
+ st.write(f"An error occurred while writing AI_vs_AI_RandomForest_88_Samples.pkl: {str(e)}")
238
 
239
  try:
240
  with open('AI_vs_AI_RandomForest_88_Samples.pkl', 'rb') as file:
241
  clf_loaded = pickle.load(file)
242
  except Exception as e:
243
+ st.write(f"An error occurred while loading AI_vs_AI_RandomForest_88_Samples.pkl: {str(e)}")
244
  return # This will exit the function
245
 
246