minwoosun commited on
Commit
16f8b8c
·
verified ·
1 Parent(s): 33d5b7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -54,7 +54,10 @@ def main(input_file_path, species):
54
  print(input_file_path)
55
  print(dir_path)
56
  print(model_loc)
57
-
 
 
 
58
 
59
  # Construct the command
60
  command = [
 
54
  print(input_file_path)
55
  print(dir_path)
56
  print(model_loc)
57
+
58
+ # Verify adata_path is not None
59
+ if adata_path is None or not os.path.exists(adata_path):
60
+ raise ValueError(f"Invalid adata_path: {adata_path}. Please check if the file exists.")
61
 
62
  # Construct the command
63
  command = [