Spaces:
Runtime error
Runtime error
Sarath Shekkizhar
commited on
Commit
·
7930492
1
Parent(s):
ae0d246
Updating with default system prompt.
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ LICENSE = """
|
|
18 |
<p/>
|
19 |
---
|
20 |
As a derivate work of by Tenyx,
|
21 |
-
this demo is governed by the
|
22 |
"""
|
23 |
|
24 |
|
@@ -44,7 +44,7 @@ def generate(
|
|
44 |
top_k: int = 50,
|
45 |
repetition_penalty: float = 1.2,
|
46 |
) -> Iterator[str]:
|
47 |
-
conversation = []
|
48 |
if system_prompt:
|
49 |
conversation.append({"role": "system", "content": system_prompt})
|
50 |
for user, assistant in chat_history:
|
|
|
18 |
<p/>
|
19 |
---
|
20 |
As a derivate work of by Tenyx,
|
21 |
+
this demo is governed by the [license](https://huggingface.co/spaces/tenyx/TenyxChat-7B-v1/blob/main/LICENSE.txt).
|
22 |
"""
|
23 |
|
24 |
|
|
|
44 |
top_k: int = 50,
|
45 |
repetition_penalty: float = 1.2,
|
46 |
) -> Iterator[str]:
|
47 |
+
conversation = [{"role": "system", "content": "You are a helpful assistant developed by Tenyx."}]
|
48 |
if system_prompt:
|
49 |
conversation.append({"role": "system", "content": system_prompt})
|
50 |
for user, assistant in chat_history:
|