dtharuneswar commited on
Commit
c5bdf26
·
verified ·
1 Parent(s): 858626f

Update inference.py

Browse files
Files changed (1) hide show
  1. inference.py +1 -1
inference.py CHANGED
@@ -213,7 +213,7 @@ def _normalize_base_url(url: str) -> str:
213
 
214
  def build_client_from_env(disable_api: bool) -> tuple[Any | None, str]:
215
  api_key = (
216
- os.getenv("HF_TOKEN", "").strip()
217
  or os.getenv("API", "").strip()
218
  or os.getenv("HF_API_TOKEN", "").strip()
219
  )
 
213
 
214
  def build_client_from_env(disable_api: bool) -> tuple[Any | None, str]:
215
  api_key = (
216
+ os.environ.get('HF_TOKEN','')
217
  or os.getenv("API", "").strip()
218
  or os.getenv("HF_API_TOKEN", "").strip()
219
  )