Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 111 |
-
|
| 112 |
-
|
|
|
|
|
|
|
|
|
|
| 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")
|