Omnibus commited on
Commit
8d217ca
1 Parent(s): 1d06fdf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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, headers=headers)
 
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)