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