Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,8 @@ 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("
|
|
|
8 |
|
9 |
|
10 |
def respond(
|
@@ -15,6 +16,10 @@ def respond(
|
|
15 |
temperature,
|
16 |
top_p,
|
17 |
):
|
|
|
|
|
|
|
|
|
18 |
messages = [{"role": "system", "content": system_message}]
|
19 |
|
20 |
for val in history:
|
|
|
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("GritAI/GritLM-7B")
|
8 |
+
# client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
9 |
|
10 |
|
11 |
def respond(
|
|
|
16 |
temperature,
|
17 |
top_p,
|
18 |
):
|
19 |
+
|
20 |
+
name = "Алиса"
|
21 |
+
system_message = "Ты {name}, виртуальный помощник"
|
22 |
+
|
23 |
messages = [{"role": "system", "content": system_message}]
|
24 |
|
25 |
for val in history:
|