Spaces:
Sleeping
Sleeping
fix syntax
Browse files
app.py
CHANGED
@@ -8,12 +8,12 @@ st.set_page_config(layout='wide')
|
|
8 |
|
9 |
# parse out gene_ids from URL query args to it's possible to link to this page
|
10 |
query_params = st.query_params()
|
11 |
-
if "gene_id_1"
|
12 |
gene_id_1 = query_params["gene_id_1"]
|
13 |
else:
|
14 |
gene_id_1 = "CNAG_04365"
|
15 |
|
16 |
-
if "gene_id_2"
|
17 |
gene_id_2 = query_params["gene_id_2"]
|
18 |
else:
|
19 |
gene_id_2 = "CNAG_04222"
|
|
|
8 |
|
9 |
# parse out gene_ids from URL query args to it's possible to link to this page
|
10 |
query_params = st.query_params()
|
11 |
+
if "gene_id_1" in query_params.keys():
|
12 |
gene_id_1 = query_params["gene_id_1"]
|
13 |
else:
|
14 |
gene_id_1 = "CNAG_04365"
|
15 |
|
16 |
+
if "gene_id_2" in query_params.keys():
|
17 |
gene_id_2 = query_params["gene_id_2"]
|
18 |
else:
|
19 |
gene_id_2 = "CNAG_04222"
|