Update app.py
Browse files
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 = [
|