davidberenstein1957 HF staff commited on
Commit
6439f9c
·
1 Parent(s): 8c7931d

fix base url to None

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ client = InferenceClient(
19
  token=os.getenv("HF_TOKEN"),
20
  model=(
21
  os.getenv("MODEL", "meta-llama/Llama-3.2-11B-Vision-Instruct")
22
- if not os.getenv("BASE_URL")
23
  else None
24
  ),
25
  base_url=os.getenv("BASE_URL"),
 
19
  token=os.getenv("HF_TOKEN"),
20
  model=(
21
  os.getenv("MODEL", "meta-llama/Llama-3.2-11B-Vision-Instruct")
22
+ if BASE_URL is None
23
  else None
24
  ),
25
  base_url=os.getenv("BASE_URL"),