Umair Khan commited on
Commit
1da62e0
·
1 Parent(s): c502ddf

try whitelisting asset directory

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -30,8 +30,9 @@ contains more than 100K cells, embeddings will be
30
  computed only for the first 100K cells.
31
  """
32
 
33
- # set up output directory
34
  OUTPUT_DIR = Path("./outputs")
 
35
  OUTPUT_DIR.mkdir(exist_ok=True, parents=True)
36
 
37
  # load symbol-to-ensembl mapping
@@ -418,4 +419,4 @@ with gr.Blocks(title=APP_TITLE) as demo:
418
  evt.then(ensure_dropdowns, inputs=[f_in], outputs=[layer_dd, var_dd, obs_dd], queue=False)
419
 
420
  if __name__ == "__main__":
421
- demo.launch(allowed_paths=[str(OUTPUT_DIR.resolve())], max_file_size="5gb")
 
30
  computed only for the first 100K cells.
31
  """
32
 
33
+ # set up directories
34
  OUTPUT_DIR = Path("./outputs")
35
+ ASSETS_DIR = Path("./assets")
36
  OUTPUT_DIR.mkdir(exist_ok=True, parents=True)
37
 
38
  # load symbol-to-ensembl mapping
 
419
  evt.then(ensure_dropdowns, inputs=[f_in], outputs=[layer_dd, var_dd, obs_dd], queue=False)
420
 
421
  if __name__ == "__main__":
422
+ demo.launch(allowed_paths=[str(OUTPUT_DIR.resolve()), str(ASSETS_DIR.resolve())], max_file_size="5gb")