Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,8 +42,8 @@ def get_system_tokens(model):
|
|
| 42 |
return get_message_tokens(model, **system_message)
|
| 43 |
|
| 44 |
|
| 45 |
-
repo_name = "
|
| 46 |
-
model_name = "
|
| 47 |
|
| 48 |
snapshot_download(repo_id=repo_name, local_dir=".", allow_patterns=model_name)
|
| 49 |
|
|
@@ -104,8 +104,8 @@ with gr.Blocks(
|
|
| 104 |
) as demo:
|
| 105 |
gr.Markdown(
|
| 106 |
f"""<h1><center>Shi-Ci-人工智能助理</center></h1>
|
| 107 |
-
这儿是一个**
|
| 108 |
-
这是量化版兮辞·析辞的部署,具有**
|
| 109 |
SLIDE 是一种会话语言模型,在多种类型的语料库上进行训练。
|
| 110 |
本节目由上海师范大学附属外国语中学**NLPark**赞助播出~
|
| 111 |
"""
|
|
@@ -136,7 +136,7 @@ with gr.Blocks(
|
|
| 136 |
minimum=0.0,
|
| 137 |
maximum=2.0,
|
| 138 |
value=0.01,
|
| 139 |
-
step=0.
|
| 140 |
interactive=True,
|
| 141 |
label="情感温度"
|
| 142 |
)
|
|
|
|
| 42 |
return get_message_tokens(model, **system_message)
|
| 43 |
|
| 44 |
|
| 45 |
+
repo_name = "second-state/BELLE-Llama2-13B-Chat-GGUF"
|
| 46 |
+
model_name = "BELLE-Llama2-13B-Chat-0.4M-ggml-model-q4_0.gguf"
|
| 47 |
|
| 48 |
snapshot_download(repo_id=repo_name, local_dir=".", allow_patterns=model_name)
|
| 49 |
|
|
|
|
| 104 |
) as demo:
|
| 105 |
gr.Markdown(
|
| 106 |
f"""<h1><center>Shi-Ci-人工智能助理</center></h1>
|
| 107 |
+
这儿是一个**中文**模型的部署. If you are interested in other languages, please check other models, such as [MPT-7B-Chat](https://huggingface.co/spaces/mosaicml/mpt-7b-chat).
|
| 108 |
+
这是量化版兮辞·析辞的部署,具有**130亿**个参数,在 CPU 上运行。
|
| 109 |
SLIDE 是一种会话语言模型,在多种类型的语料库上进行训练。
|
| 110 |
本节目由上海师范大学附属外国语中学**NLPark**赞助播出~
|
| 111 |
"""
|
|
|
|
| 136 |
minimum=0.0,
|
| 137 |
maximum=2.0,
|
| 138 |
value=0.01,
|
| 139 |
+
step=0.2,
|
| 140 |
interactive=True,
|
| 141 |
label="情感温度"
|
| 142 |
)
|