Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -71,8 +71,11 @@ 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 |
lvl_2=[]
|
75 |
-
for ea in
|
76 |
lvl_2.append(out_json[f'{lvl_1}'][f'{ea}'])
|
77 |
return gr.update(choices=[l for l in lvl_2])
|
78 |
|
|
|
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 i,ea in enumerate(dictionary[lvl_1]):
|
79 |
lvl_2.append(out_json[f'{lvl_1}'][f'{ea}'])
|
80 |
return gr.update(choices=[l for l in lvl_2])
|
81 |
|