Spaces:
Sleeping
Sleeping
Update inference.py
Browse files- 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.
|
| 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 |
)
|