Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -86,19 +86,19 @@ def upd_drop(lvl_1,lvl_2,lvl_3,lvl_4,lvl_5,fetch_url,config="TEST",split="test",
|
|
86 |
out3=None
|
87 |
out4=None
|
88 |
|
89 |
-
if lvl_1 !="":
|
90 |
for ea in (out_json[lvl_1]):
|
91 |
box_1.append(ea)
|
92 |
out= gr.update(choices = [m for m in box_1])
|
93 |
-
if lvl_2 !="":
|
94 |
for ea in (out_json[lvl_1]):
|
95 |
box_2.append(ea[lvl_2])
|
96 |
out= gr.update(choices = [m for m in box_2])
|
97 |
-
if lvl_3 !="":
|
98 |
for ea in (out_json[lvl_1]):
|
99 |
box_3.append(ea[lvl_2][lvl_3])
|
100 |
out= gr.update(choices = [m for m in box_3])
|
101 |
-
if lvl_4 !="":
|
102 |
for ea in (out_json[lvl_1]):
|
103 |
box_4.append(ea[lvl_2][lvl_3][lvl_4])
|
104 |
out= gr.update(choices = [m for m in box_4])
|
|
|
86 |
out3=None
|
87 |
out4=None
|
88 |
|
89 |
+
if lvl_1 !="" and lvl_1 != None:
|
90 |
for ea in (out_json[lvl_1]):
|
91 |
box_1.append(ea)
|
92 |
out= gr.update(choices = [m for m in box_1])
|
93 |
+
if lvl_2 !="" and lvl_2 != None:
|
94 |
for ea in (out_json[lvl_1]):
|
95 |
box_2.append(ea[lvl_2])
|
96 |
out= gr.update(choices = [m for m in box_2])
|
97 |
+
if lvl_3 !="" and lvl_3 != None:
|
98 |
for ea in (out_json[lvl_1]):
|
99 |
box_3.append(ea[lvl_2][lvl_3])
|
100 |
out= gr.update(choices = [m for m in box_3])
|
101 |
+
if lvl_4 !="" and lvl_4 != None:
|
102 |
for ea in (out_json[lvl_1]):
|
103 |
box_4.append(ea[lvl_2][lvl_3][lvl_4])
|
104 |
out= gr.update(choices = [m for m in box_4])
|