Omnibus commited on
Commit
f6669c0
1 Parent(s): 9bf98ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -41,12 +41,14 @@ def find_fn(inp,out_json):
41
  #print(out_json['rows'])
42
  #print (inp)
43
  img_list=[]
44
- out_json1=query2("",offset=10,length=20)
45
- for rows in out_json1['rows']:
46
- img_ea = rows['row']['image']['src']
47
- img_list.append(img_ea)
48
 
49
- return img_list,img_list
 
 
 
 
 
50
  with gr.Blocks() as app:
51
  with gr.Row():
52
  data_set_url=gr.Textbox(label="Dataset (repo/name)")
 
41
  #print(out_json['rows'])
42
  #print (inp)
43
  img_list=[]
44
+ #out_json1=query2(,offset=10,length=20)
 
 
 
45
 
46
+ inp=inp.strip("[]")
47
+ for ea in out_json[inp]:
48
+ #img_ea = ea['row']['image']['src']
49
+ img_list.append(ea)
50
+
51
+ return img_list
52
  with gr.Blocks() as app:
53
  with gr.Row():
54
  data_set_url=gr.Textbox(label="Dataset (repo/name)")