msabia commited on
Commit
dc7735e
·
verified ·
1 Parent(s): 30b0b29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -107,9 +107,12 @@ with gr.Blocks(title="Bioscan-Clip") as demo:
107
  id_to_dna_emb_dict = pickle.load(f)
108
 
109
  # open taxonomy files
110
- family = [item.decode("utf-8") for item in dataset_hdf5_all_key["family"][:]]
111
- genus = [item.decode("utf-8") for item in dataset_hdf5_all_key["genus"][:]]
112
- species = [item.decode("utf-8") for item in dataset_hdf5_all_key["species"][:]]
 
 
 
113
 
114
  with gr.Column():
115
  process_id = gr.Textbox(label="ID:", info="Enter a sample ID to search for")
 
107
  id_to_dna_emb_dict = pickle.load(f)
108
 
109
  # open taxonomy files
110
+ with open("family.pickle", "rb") as f:
111
+ family = [item.decode("utf-8") for item in pickle.load(f)]
112
+ with open("genus.pickle", "rb") as f:
113
+ genus= [item.decode("utf-8") for item in pickle.load(f)]
114
+ with open("species.pickle", "rb") as f:
115
+ species = [item.decode("utf-8") for item in pickle.load(f)]
116
 
117
  with gr.Column():
118
  process_id = gr.Textbox(label="ID:", info="Enter a sample ID to search for")