jordi-ai2 commited on
Commit
b472b73
·
verified ·
1 Parent(s): 7b3501c

Update stream_access_example.py

Browse files
Files changed (1) hide show
  1. stream_access_example.py +2 -2
stream_access_example.py CHANGED
@@ -13,7 +13,7 @@ try:
13
  import requests
14
  import zstandard as zstd
15
  from datasets import load_dataset
16
- from huggingface_hub import hf_hub_url, HfFolder
17
  except ImportError:
18
  print(
19
  "Please setup your environment with e.g."
@@ -21,7 +21,7 @@ except ImportError:
21
  )
22
  raise
23
 
24
- TOKEN = HfFolder.get_token()
25
  REPO = "allenai/molmobot-data"
26
  TASK_CONFIGS = [
27
  "DoorOpeningDataGenConfig",
 
13
  import requests
14
  import zstandard as zstd
15
  from datasets import load_dataset
16
+ from huggingface_hub import hf_hub_url, get_token
17
  except ImportError:
18
  print(
19
  "Please setup your environment with e.g."
 
21
  )
22
  raise
23
 
24
+ TOKEN = get_token()
25
  REPO = "allenai/molmobot-data"
26
  TASK_CONFIGS = [
27
  "DoorOpeningDataGenConfig",