Spaces:
Running
Running
Update app.py
Browse files
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 = "
|
8 |
|
9 |
client = InferenceClient(model_id)
|
10 |
|
@@ -28,7 +28,7 @@ def respond(
|
|
28 |
|
29 |
response = ""
|
30 |
|
31 |
-
for message in client.
|
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,
|