minwoosun commited on
Commit
454355d
1 Parent(s): a33d650

fix library

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -8,18 +8,20 @@ import scanpy as sc
8
  import argparse
9
  import subprocess
10
  from io import BytesIO
11
- from evaluate import AnndataProcessor
12
- from accelerate import Accelerator
13
  from huggingface_hub import hf_hub_download
14
 
15
 
16
  def main(input_file_path, species):
17
-
18
  # clone and cd into UCE repo
 
 
19
 
20
  ##############
21
  # UCE #
22
  ##############
 
 
23
 
24
  # python eval_single_anndata.py --adata_path "./data/10k_pbmcs_proc.h5ad" --dir "./" --model_loc "minwoosun/uce-100m"
25
  script_name = "/home/user/app/eval_single_anndata.py"
@@ -81,9 +83,6 @@ def main(input_file_path, species):
81
 
82
 
83
  if __name__ == "__main__":
84
-
85
- os.system('git clone https://github.com/minwoosun/UCE.git')
86
- os.chdir('UCE')
87
 
88
  # Define Gradio inputs and outputs
89
  file_input = gr.File(label="Upload a .h5ad single cell gene expression file")
 
8
  import argparse
9
  import subprocess
10
  from io import BytesIO
 
 
11
  from huggingface_hub import hf_hub_download
12
 
13
 
14
  def main(input_file_path, species):
15
+
16
  # clone and cd into UCE repo
17
+ os.system('git clone https://github.com/minwoosun/UCE.git')
18
+ os.chdir('UCE')
19
 
20
  ##############
21
  # UCE #
22
  ##############
23
+ from evaluate import AnndataProcessor
24
+ from accelerate import Accelerator
25
 
26
  # python eval_single_anndata.py --adata_path "./data/10k_pbmcs_proc.h5ad" --dir "./" --model_loc "minwoosun/uce-100m"
27
  script_name = "/home/user/app/eval_single_anndata.py"
 
83
 
84
 
85
  if __name__ == "__main__":
 
 
 
86
 
87
  # Define Gradio inputs and outputs
88
  file_input = gr.File(label="Upload a .h5ad single cell gene expression file")