NinjaTribe commited on
Commit
9b3313b
·
verified ·
1 Parent(s): 69d1738

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
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
- NINJA_API = os.environ.get("NINJA_API")
9
 
10
- api_token = 'NINJA_API'
11
-
12
- os.environ["HF_API_TOKEN"] = api_token
 
13
 
14
- client = InferenceClient(token="NINJA_API", model="HuggingFaceH4/zephyr-7b-beta")
 
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