freddyaboulton HF Staff commited on
Commit
e674021
·
verified ·
1 Parent(s): fcf72a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def response(
41
  client = OpenAI(base_url=provider, api_key="ollama")
42
  else:
43
  client = huggingface_hub.InferenceClient(
44
- api_key=context.oauth_token.access_token, # type: ignore
45
  provider=provider, # type: ignore
46
  )
47
 
 
41
  client = OpenAI(base_url=provider, api_key="ollama")
42
  else:
43
  client = huggingface_hub.InferenceClient(
44
+ api_key=context.oauth_token.token, # type: ignore
45
  provider=provider, # type: ignore
46
  )
47