giustinod commited on
Commit
1ce5c4d
1 Parent(s): e05a254

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ 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
- model_id = "unsloth/Meta-Llama-3.1-8B" # "giustinod/TestLogica-AZService"
8
 
9
  client = InferenceClient(model_id)
10
 
@@ -28,7 +28,7 @@ def respond(
28
 
29
  response = ""
30
 
31
- for message in client.chat_completion(
32
  messages,
33
  max_tokens=max_tokens,
34
  stream=True,
 
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
+ model_id = "giustinod/TestLogica-AZService"
8
 
9
  client = InferenceClient(model_id)
10
 
 
28
 
29
  response = ""
30
 
31
+ for message in client.chat.completions.create(
32
  messages,
33
  max_tokens=max_tokens,
34
  stream=True,