Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -17,14 +17,18 @@ def query1(fetch_url):
|
|
17 |
|
18 |
config_box = []
|
19 |
split_box = []
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
28 |
#df = pd.DataFrame.from_dict(json_obj)
|
29 |
return json_obj,gr.update(choices=[c for c in config_box]),gr.update(choices=[s for s in split_box])
|
30 |
|
|
|
17 |
|
18 |
config_box = []
|
19 |
split_box = []
|
20 |
+
for obj in json_obj:
|
21 |
+
print (obj)
|
22 |
+
try:
|
23 |
+
#print (obj)
|
24 |
+
out_config = obj['config']
|
25 |
+
out_split = obj['split']
|
26 |
+
print (out_config)
|
27 |
+
print (out_split)
|
28 |
+
config_box.append(obj['config'])
|
29 |
+
split_box.append(obj['split'])
|
30 |
+
except Exception:
|
31 |
+
pass
|
32 |
#df = pd.DataFrame.from_dict(json_obj)
|
33 |
return json_obj,gr.update(choices=[c for c in config_box]),gr.update(choices=[s for s in split_box])
|
34 |
|