Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
45 |
-
for rows in out_json1['rows']:
|
46 |
-
img_ea = rows['row']['image']['src']
|
47 |
-
img_list.append(img_ea)
|
48 |
|
49 |
-
|
|
|
|
|
|
|
|
|
|
|
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)")
|