Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -68,17 +68,12 @@ def find_fn(lvl_1,lvl_2,fetch_url,config="TEST",split="test",offset=0,length=10)
|
|
68 |
|
69 |
|
70 |
def upd_drop(lvl_1,fetch_url,config="TEST",split="test",offset=0,length=10):
|
71 |
-
|
72 |
-
#def upd_drop(inp1,inp2,inp3,inp4,inp5,fetch_url,config="TEST",split="test",offset=0,length=10):
|
73 |
out_json,_=query2(fetch_url,config,split,offset=10,length=20)
|
74 |
-
#API_URL2 = f"https://datasets-server.huggingface.co/rows?dataset={fetch_url}&config={config}&split={split}&offset={offset}&length={length}"
|
75 |
-
#response = requests.get(API_URL2)
|
76 |
-
#dictionary=response.json()
|
77 |
lvl_2=[]
|
78 |
-
for
|
79 |
print (i)
|
80 |
print (ea)
|
81 |
-
lvl_2.append(
|
82 |
return gr.update(choices=[l for l in lvl_2])
|
83 |
|
84 |
with gr.Blocks() as app:
|
|
|
68 |
|
69 |
|
70 |
def upd_drop(lvl_1,fetch_url,config="TEST",split="test",offset=0,length=10):
|
|
|
|
|
71 |
out_json,_=query2(fetch_url,config,split,offset=10,length=20)
|
|
|
|
|
|
|
72 |
lvl_2=[]
|
73 |
+
for ea in (out_json[lvl_1]):
|
74 |
print (i)
|
75 |
print (ea)
|
76 |
+
lvl_2.append(ea)
|
77 |
return gr.update(choices=[l for l in lvl_2])
|
78 |
|
79 |
with gr.Blocks() as app:
|