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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -5,15 +5,13 @@ 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_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
 
@@ -32,7 +30,6 @@ def role(message, history):
32
 
33
  return history, history
34
 
35
-
36
  """
37
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
38
  """
 
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
+ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
10
+
11
+ api_key = os.environ.get("NINJA_API")
 
12
 
13
  completion = client.chat.completions.create(
14
+ model="deepseek-ai/DeepSeek-V3-0324")
15
 
16
  PERSONALITY = os.environ.get("CHATBOT_PERSONALITY")
17
 
 
30
 
31
  return history, history
32
 
 
33
  """
34
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
35
  """