Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import requests
|
2 |
-
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
3 |
API_URL1 = "https://datasets-server.huggingface.co/splits?dataset=nlphuji/flickr30k"
|
4 |
def query1():
|
5 |
-
response = requests.get(API_URL1
|
|
|
6 |
return response.json()
|
7 |
data = query1()
|
8 |
print (data)
|
|
|
1 |
import requests
|
2 |
+
#headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
3 |
API_URL1 = "https://datasets-server.huggingface.co/splits?dataset=nlphuji/flickr30k"
|
4 |
def query1():
|
5 |
+
response = requests.get(API_URL1)
|
6 |
+
#response = requests.get(API_URL1, headers=headers)
|
7 |
return response.json()
|
8 |
data = query1()
|
9 |
print (data)
|