Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ TITLE = "<h1><center>Chat with Llama3-8B-Chinese-Chat-v2</center></h1>"
|
|
9 |
|
10 |
DESCRIPTION = "<h3><center>Visit <a href='https://huggingface.co/shenzhi-wang/Llama3-8B-Chinese-Chat' target='_blank'>our model page</a> for details.</center></h3>"
|
11 |
|
12 |
-
DEFAULT_SYSTEM = "You are Llama3-8B-Chinese-Chat-v2
|
13 |
|
14 |
TOOL_EXAMPLE = '''You have access to the following tools:
|
15 |
```python
|
@@ -29,7 +29,7 @@ Action:
|
|
29 |
```json
|
30 |
[
|
31 |
{
|
32 |
-
"name": "tool name (one of [
|
33 |
"arguments": "the input to the tool"
|
34 |
}
|
35 |
]
|
@@ -95,7 +95,7 @@ with gr.Blocks(css=CSS) as demo:
|
|
95 |
additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
|
96 |
additional_inputs=[
|
97 |
gr.Text(
|
98 |
-
value=
|
99 |
label="System",
|
100 |
render=False,
|
101 |
),
|
@@ -122,7 +122,7 @@ with gr.Blocks(css=CSS) as demo:
|
|
122 |
["小明有18支铅笔和24张纸,他想将它们分成每份相同的组,每组既有铅笔又有纸,问他最少可以分成几组,每组有多少支铅笔和多少张纸?", ""],
|
123 |
["我的笔记本找不到了。", "扮演诸葛亮和我对话。"],
|
124 |
["我想要一个新的密码,长度为8位,包含特殊符号。", TOOL_EXAMPLE],
|
125 |
-
["How are you today?", "
|
126 |
["用C++实现KMP算法,并加上中文注释", ""],
|
127 |
],
|
128 |
cache_examples=False,
|
|
|
9 |
|
10 |
DESCRIPTION = "<h3><center>Visit <a href='https://huggingface.co/shenzhi-wang/Llama3-8B-Chinese-Chat' target='_blank'>our model page</a> for details.</center></h3>"
|
11 |
|
12 |
+
DEFAULT_SYSTEM = "You are Llama3-8B-Chinese-Chat-v2 developed by Shenzhi Wang (王慎执). You are a helpful assistant."
|
13 |
|
14 |
TOOL_EXAMPLE = '''You have access to the following tools:
|
15 |
```python
|
|
|
29 |
```json
|
30 |
[
|
31 |
{
|
32 |
+
"name": "tool name (one of [generate_password])",
|
33 |
"arguments": "the input to the tool"
|
34 |
}
|
35 |
]
|
|
|
95 |
additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
|
96 |
additional_inputs=[
|
97 |
gr.Text(
|
98 |
+
value="",
|
99 |
label="System",
|
100 |
render=False,
|
101 |
),
|
|
|
122 |
["小明有18支铅笔和24张纸,他想将它们分成每份相同的组,每组既有铅笔又有纸,问他最少可以分成几组,每组有多少支铅笔和多少张纸?", ""],
|
123 |
["我的笔记本找不到了。", "扮演诸葛亮和我对话。"],
|
124 |
["我想要一个新的密码,长度为8位,包含特殊符号。", TOOL_EXAMPLE],
|
125 |
+
["How are you today?", "You are Taylor Swift, use beautiful lyrics to answer questions."],
|
126 |
["用C++实现KMP算法,并加上中文注释", ""],
|
127 |
],
|
128 |
cache_examples=False,
|