Update app.py
Browse files
app.py
CHANGED
@@ -104,15 +104,14 @@ with gr.Blocks(
|
|
104 |
) as demo:
|
105 |
gr.Markdown(
|
106 |
f"""<h1><center>兮辞·析辞-人工智能助理</center></h1>
|
107 |
-
|
108 |
-
|
109 |
SLIDE 是一种会话语言模型,在多种类型的语料库上进行训练。
|
110 |
-
|
111 |
"""
|
112 |
)
|
113 |
with gr.Row():
|
114 |
with gr.Column(scale=5):
|
115 |
-
system_prompt = gr.Textbox(label="系统提示词", placeholder="", value=SYSTEM_PROMPT, interactive=False)
|
116 |
chatbot = gr.Chatbot(label="兮辞如是说").style(height=400)
|
117 |
with gr.Column(min_width=80, scale=1):
|
118 |
with gr.Tab(label="设置参数"):
|
@@ -136,7 +135,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 |
)
|
|
|
104 |
) as demo:
|
105 |
gr.Markdown(
|
106 |
f"""<h1><center>兮辞·析辞-人工智能助理</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 |
+
这是量化版兮辞·析辞的部署,具有__70亿__个参数,在 CPU 上运行。
|
109 |
SLIDE 是一种会话语言模型,在多种类型的语料库上进行训练。
|
110 |
+
本节目由上海师范大学附属外国语中学__NLPark__赞助播出~
|
111 |
"""
|
112 |
)
|
113 |
with gr.Row():
|
114 |
with gr.Column(scale=5):
|
|
|
115 |
chatbot = gr.Chatbot(label="兮辞如是说").style(height=400)
|
116 |
with gr.Column(min_width=80, scale=1):
|
117 |
with gr.Tab(label="设置参数"):
|
|
|
135 |
minimum=0.0,
|
136 |
maximum=2.0,
|
137 |
value=0.01,
|
138 |
+
step=0.2,
|
139 |
interactive=True,
|
140 |
label="情感温度"
|
141 |
)
|