Update with provider.
Browse files- app.py +4 -2
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -4,8 +4,10 @@ from huggingface_hub import InferenceClient
|
|
| 4 |
"""
|
| 5 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
| 6 |
"""
|
| 7 |
-
client = InferenceClient(
|
| 8 |
-
|
|
|
|
|
|
|
| 9 |
|
| 10 |
def respond(
|
| 11 |
message,
|
|
|
|
| 4 |
"""
|
| 5 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
| 6 |
"""
|
| 7 |
+
client = InferenceClient(
|
| 8 |
+
provider="groq",
|
| 9 |
+
api_key=os.environ["HF_TOKEN"],
|
| 10 |
+
)
|
| 11 |
|
| 12 |
def respond(
|
| 13 |
message,
|
requirements.txt
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
huggingface_hub==0.25.2
|
|
|
|
| 1 |
+
huggingface_hub==0.25.2
|