Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,13 +5,15 @@ from huggingface_hub import InferenceClient
|
|
| 5 |
"""
|
| 6 |
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
|
| 7 |
"""
|
| 8 |
-
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
| 13 |
|
| 14 |
-
|
|
|
|
| 15 |
|
| 16 |
PERSONALITY = os.environ.get("CHATBOT_PERSONALITY")
|
| 17 |
|
|
|
|
| 5 |
"""
|
| 6 |
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
|
| 7 |
"""
|
| 8 |
+
NINJA_KEY = os.environ.get("NINJA_API")
|
| 9 |
|
| 10 |
+
client = InferenceClient(
|
| 11 |
+
provider="HuggingFaceH4/zephyr-7b-beta",
|
| 12 |
+
api_key="NINJA_KEY",
|
| 13 |
+
)
|
| 14 |
|
| 15 |
+
completion = client.chat.completions.create(
|
| 16 |
+
model="deepseek-ai/DeepSeek-V3-0324",
|
| 17 |
|
| 18 |
PERSONALITY = os.environ.get("CHATBOT_PERSONALITY")
|
| 19 |
|