Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,6 +35,7 @@ def query2(fetch_url,config="TEST",split="test",offset=0,length=10):
|
|
35 |
API_URL2 = f"https://datasets-server.huggingface.co/rows?dataset={fetch_url}&config={config}&split={split}&offset={offset}&length={length}"
|
36 |
response = requests.get(API_URL2)
|
37 |
dictionary=response.json()
|
|
|
38 |
return dictionary
|
39 |
|
40 |
def find_fn(lvl_1,lvl_2,fetch_url,config="TEST",split="test",offset=0,length=10):
|
|
|
35 |
API_URL2 = f"https://datasets-server.huggingface.co/rows?dataset={fetch_url}&config={config}&split={split}&offset={offset}&length={length}"
|
36 |
response = requests.get(API_URL2)
|
37 |
dictionary=response.json()
|
38 |
+
print (len(dictionary))
|
39 |
return dictionary
|
40 |
|
41 |
def find_fn(lvl_1,lvl_2,fetch_url,config="TEST",split="test",offset=0,length=10):
|