Omnibus commited on
Commit
813a644
1 Parent(s): 746d0e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -42,8 +42,9 @@ def find_fn(lvl_1,lvl_2,fetch_url,config="TEST",split="test",offset=0,length=10)
42
  #print (inp)
43
  img_list=[]
44
  out_json=query2(fetch_url,config,split,offset=10,length=20)
45
-
46
- inp=inp.strip("[]")
 
47
  print(inp)
48
  if lvl_2 != "":
49
  for ea in out_json[f"{lvl_1}"]:
 
42
  #print (inp)
43
  img_list=[]
44
  out_json=query2(fetch_url,config,split,offset=10,length=20)
45
+ lvl_1=lvl_1.strip("[]")
46
+
47
+ lvl_2=lvl_2.strip("[]")
48
  print(inp)
49
  if lvl_2 != "":
50
  for ea in out_json[f"{lvl_1}"]: