Rahatara commited on
Commit
6062c05
·
verified ·
1 Parent(s): 285d0ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -18,13 +18,14 @@ import torch
18
  import tqdm
19
  import accelerate
20
  import re
 
21
  from huggingface_hub import login, HfApi
22
 
23
 
24
 
25
  # Authenticate using the Hugging Face token stored as a secret
26
  def authenticate_hf():
27
- token = os.getenv(HF)
28
  if not token:
29
  raise ValueError("Hugging Face token not found in environment variables.")
30
 
 
18
  import tqdm
19
  import accelerate
20
  import re
21
+ from huggingface_hub import InferenceClient
22
  from huggingface_hub import login, HfApi
23
 
24
 
25
 
26
  # Authenticate using the Hugging Face token stored as a secret
27
  def authenticate_hf():
28
+ token = os.getenv("HF")
29
  if not token:
30
  raise ValueError("Hugging Face token not found in environment variables.")
31