Thiloid commited on
Commit
a2c0830
·
verified ·
1 Parent(s): e992eb5

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +1 -2
run.py CHANGED
@@ -18,8 +18,7 @@ api_key = os.getenv("key")
18
  # Step 1: Authenticate with Hugging Face Hub
19
  api = HfApi()
20
  # Replace 'your_token' with your actual Hugging Face API token
21
- HfFolder.get_token(api_token=api_key)
22
-
23
  # Step 2: Specify your Hugging Face username, Space name, and file name
24
  username = 'thiloid'
25
  space_name = 'envapi'
 
18
  # Step 1: Authenticate with Hugging Face Hub
19
  api = HfApi()
20
  # Replace 'your_token' with your actual Hugging Face API token
21
+ api.token = api_key
 
22
  # Step 2: Specify your Hugging Face username, Space name, and file name
23
  username = 'thiloid'
24
  space_name = 'envapi'