MoritzLaurer HF staff commited on
Commit
45123a0
1 Parent(s): 0e0fe0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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("HuggingFaceH4/zephyr-7b-beta")
8
-
 
 
9
 
10
  def respond(
11
  message,
@@ -29,6 +31,7 @@ def respond(
29
 
30
  for message in client.chat_completion(
31
  messages,
 
32
  max_tokens=max_tokens,
33
  stream=True,
34
  temperature=temperature,
 
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
+ base_url="https://huggingface.co/api/integrations/dgx/v1"
9
+ # api_key="..." # Uncomment and use your actual API key here if required
10
+ )
11
 
12
  def respond(
13
  message,
 
31
 
32
  for message in client.chat_completion(
33
  messages,
34
+ model="meta-llama/Meta-Llama-3.1-8B-Instruct",
35
  max_tokens=max_tokens,
36
  stream=True,
37
  temperature=temperature,