Omnibus commited on
Commit
9d347fb
1 Parent(s): fb758a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -8
app.py CHANGED
@@ -17,14 +17,18 @@ def query1(fetch_url):
17
 
18
  config_box = []
19
  split_box = []
20
- #for obj in json_obj:
21
- #print (obj)
22
- out_config = json_obj['config']
23
- out_split = json_obj['split']
24
- print (out_config)
25
- print (out_split)
26
- config_box.append(obj['config'])
27
- split_box.append(obj['split'])
 
 
 
 
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