rodevel1978
commited on
Commit
•
cf06b5f
1
Parent(s):
41338d9
Update app.py
Browse files
app.py
CHANGED
@@ -15,17 +15,14 @@ DEFAULT_MAX_NEW_TOKENS = 1024
|
|
15 |
MAX_INPUT_TOKEN_LENGTH = 4000
|
16 |
|
17 |
DESCRIPTION = """
|
18 |
-
#
|
19 |
-
|
20 |
-
本空间是对于[Chinese-Llama-2-7b-4bit](https://huggingface.co/LinkSoul/Chinese-Llama-2-7b-4bit)和[Chinese-Llama-2-7b](https://huggingface.co/LinkSoul/Chinese-Llama-2-7b)模型的演示。该模型由LinkSoul开发,基于Llama 2基础模型和自行收集的大规模中英文指令数据集[instruction_merge_set](https://huggingface.co/datasets/LinkSoul/instruction_merge_set)训练得到。
|
21 |
"""
|
22 |
|
23 |
LICENSE = """
|
24 |
<p/>
|
25 |
|
26 |
---
|
27 |
-
|
28 |
-
this demo is governed by the original [license](https://huggingface.co/spaces/LinkSoul/Chinese-Llama-2-7b/blob/main/LICENSE.txt) and [acceptable use policy](https://huggingface.co/spaces/LinkSoul/Chinese-Llama-2-7b/blob/main/USE_POLICY.md).
|
29 |
"""
|
30 |
|
31 |
if not torch.cuda.is_available():
|
@@ -147,13 +144,9 @@ with gr.Blocks(css='style.css') as demo:
|
|
147 |
|
148 |
gr.Examples(
|
149 |
examples=[
|
150 |
-
'
|
151 |
-
'用英文回答,特朗普是谁?',
|
152 |
'Hello there! How are you doing?',
|
153 |
'Can you explain briefly to me what is the Python programming language?',
|
154 |
-
'Explain the plot of Cinderella in a sentence.',
|
155 |
-
'How many hours does it take a man to eat a Helicopter?',
|
156 |
-
"Write a 100-word article on 'Benefits of Open-Source in AI research'",
|
157 |
],
|
158 |
inputs=textbox,
|
159 |
outputs=[textbox, chatbot],
|
|
|
15 |
MAX_INPUT_TOKEN_LENGTH = 4000
|
16 |
|
17 |
DESCRIPTION = """
|
18 |
+
# llama-2-13b-chat.ggmlv3.q4_K_S
|
|
|
|
|
19 |
"""
|
20 |
|
21 |
LICENSE = """
|
22 |
<p/>
|
23 |
|
24 |
---
|
25 |
+
[Llama-2-13b-chat](https://huggingface.co/meta-llama/Llama-2-13b-chat) by Meta).
|
|
|
26 |
"""
|
27 |
|
28 |
if not torch.cuda.is_available():
|
|
|
144 |
|
145 |
gr.Examples(
|
146 |
examples=[
|
147 |
+
'When is the best time to visit Beijing, and do you have any suggestions for me?',
|
|
|
148 |
'Hello there! How are you doing?',
|
149 |
'Can you explain briefly to me what is the Python programming language?',
|
|
|
|
|
|
|
150 |
],
|
151 |
inputs=textbox,
|
152 |
outputs=[textbox, chatbot],
|