gmmcleod commited on
Commit
283170b
·
verified ·
1 Parent(s): 2a8560a

added a line to evaluate to see if no filepath will print correctly

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -302,6 +302,9 @@ def evaluate_model(username, file):
302
  # print(f"HELLO: {hello}")
303
  # import
304
  sectors_model = import_and_run_function(file, "evaluate", local_file_path)
 
 
 
305
  try:
306
  os.remove(local_file_path)
307
  except Exception as e:
 
302
  # print(f"HELLO: {hello}")
303
  # import
304
  sectors_model = import_and_run_function(file, "evaluate", local_file_path)
305
+ if sectors_model == None:
306
+ return None
307
+
308
  try:
309
  os.remove(local_file_path)
310
  except Exception as e: