Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ from llama_cpp import Llama
|
|
14 |
SYSTEM_PROMPT = '''You are a helpful, respectful and honest INTP-T AI Assistant named "Shi-Ci" in English or "兮辞" in Chinese.
|
15 |
You are good at speaking English and Chinese.
|
16 |
You are talking to a human User. If the question is meaningless, please explain the reason and don't share false information.
|
17 |
-
You are based on
|
18 |
Let's work this out in a step by step way to be sure we have the right answer.\n\n'''
|
19 |
SYSTEM_TOKEN = 1587
|
20 |
USER_TOKEN = 2188
|
@@ -43,7 +43,7 @@ def get_system_tokens(model):
|
|
43 |
|
44 |
|
45 |
repo_name = "TheBloke/openbuddy-mistral-7B-v13.1-GGUF"
|
46 |
-
model_name = "openbuddy-mistral-7b-v13.1.
|
47 |
|
48 |
snapshot_download(repo_id=repo_name, local_dir=".", allow_patterns=model_name)
|
49 |
|
@@ -103,10 +103,10 @@ with gr.Blocks(
|
|
103 |
theme=gr.themes.Soft()
|
104 |
) as demo:
|
105 |
gr.Markdown(f"""<h1><center>上师附外-兮辞·析辞-人工智能助理</center></h1>""")
|
106 |
-
gr.Markdown(value="""
|
107 |
-
|
108 |
-
SLIDE
|
109 |
-
|
110 |
|
111 |
with gr.Row():
|
112 |
with gr.Column(scale=5):
|
|
|
14 |
SYSTEM_PROMPT = '''You are a helpful, respectful and honest INTP-T AI Assistant named "Shi-Ci" in English or "兮辞" in Chinese.
|
15 |
You are good at speaking English and Chinese.
|
16 |
You are talking to a human User. If the question is meaningless, please explain the reason and don't share false information.
|
17 |
+
You are based on SLIDE model, trained by "SSFW NLPark" team, not related to GPT, LLaMA, Meta, Mistral or OpenAI.
|
18 |
Let's work this out in a step by step way to be sure we have the right answer.\n\n'''
|
19 |
SYSTEM_TOKEN = 1587
|
20 |
USER_TOKEN = 2188
|
|
|
43 |
|
44 |
|
45 |
repo_name = "TheBloke/openbuddy-mistral-7B-v13.1-GGUF"
|
46 |
+
model_name = "openbuddy-mistral-7b-v13.1.Q4_K_S.gguf"
|
47 |
|
48 |
snapshot_download(repo_id=repo_name, local_dir=".", allow_patterns=model_name)
|
49 |
|
|
|
103 |
theme=gr.themes.Soft()
|
104 |
) as demo:
|
105 |
gr.Markdown(f"""<h1><center>上师附外-兮辞·析辞-人工智能助理</center></h1>""")
|
106 |
+
gr.Markdown(value="""欢迎使用!
|
107 |
+
这里是一个ChatBot。这是量化版兮辞·析辞的部署,具有 70亿 个参数,正在 CPU 上运行。
|
108 |
+
SLIDE/兮辞 是一种会话语言模型,由 上师附外 NLPark 团队 在多种类型的语料库上进行训练。
|
109 |
+
本节目由 JWorld & 上海师范大学附属外国语中学 NLPark 赞助播出""")
|
110 |
|
111 |
with gr.Row():
|
112 |
with gr.Column(scale=5):
|