Update app.py
Browse files
app.py
CHANGED
@@ -44,17 +44,19 @@ def main(input_file_path, species):
|
|
44 |
from accelerate import Accelerator
|
45 |
|
46 |
# python eval_single_anndata.py --adata_path "./data/10k_pbmcs_proc.h5ad" --dir "./" --model_loc "minwoosun/uce-100m"
|
47 |
-
script_name = "/home/user/app/eval_single_anndata.py"
|
48 |
args = ["--adata_path", input_file_path, "--dir", "/home/user/app/UCE/", "--model_loc", "minwoosun/uce-100m"]
|
49 |
command = ["python", script_name] + args
|
50 |
|
51 |
try:
|
|
|
52 |
result = subprocess.run(command, capture_output=True, text=True, check=True)
|
53 |
print(result.stdout)
|
54 |
print(result.stderr)
|
55 |
except subprocess.CalledProcessError as e:
|
56 |
print(f"Error executing command: {e}")
|
57 |
|
|
|
58 |
|
59 |
##############
|
60 |
# UMAP #
|
|
|
44 |
from accelerate import Accelerator
|
45 |
|
46 |
# python eval_single_anndata.py --adata_path "./data/10k_pbmcs_proc.h5ad" --dir "./" --model_loc "minwoosun/uce-100m"
|
47 |
+
script_name = "/home/user/app/UCE/eval_single_anndata.py"
|
48 |
args = ["--adata_path", input_file_path, "--dir", "/home/user/app/UCE/", "--model_loc", "minwoosun/uce-100m"]
|
49 |
command = ["python", script_name] + args
|
50 |
|
51 |
try:
|
52 |
+
print("---> RUNNING UCE")
|
53 |
result = subprocess.run(command, capture_output=True, text=True, check=True)
|
54 |
print(result.stdout)
|
55 |
print(result.stderr)
|
56 |
except subprocess.CalledProcessError as e:
|
57 |
print(f"Error executing command: {e}")
|
58 |
|
59 |
+
print("---> FINSIH UCE")
|
60 |
|
61 |
##############
|
62 |
# UMAP #
|