Spaces:
Runtime error
Runtime error
Commit
·
b65856c
1
Parent(s):
bacca9b
Update app.py
Browse files
app.py
CHANGED
|
@@ -317,10 +317,11 @@ with gr.Blocks(title="ChatGLM2-6B-int4", theme=gr.themes.Soft(text_size="sm")) a
|
|
| 317 |
|
| 318 |
|
| 319 |
with gr.Accordion("📒 相关信息", open=False):
|
| 320 |
-
_ = f""" ChatGLM2
|
| 321 |
* Low temperature: responses will be more deterministic and focused; High temperature: responses more creative.
|
| 322 |
* Suggested temperatures -- translation: up to 0.3; chatting: > 0.4
|
| 323 |
* Top P controls dynamic vocabulary selection based on context.
|
|
|
|
| 324 |
"""
|
| 325 |
gr.Markdown(dedent(_))
|
| 326 |
chatbot = gr.Chatbot()
|
|
@@ -487,7 +488,14 @@ with gr.Blocks(title="ChatGLM2-6B-int4", theme=gr.themes.Soft(text_size="sm")) a
|
|
| 487 |
)
|
| 488 |
# """
|
| 489 |
|
| 490 |
-
|
| 491 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 492 |
|
| 493 |
demo.queue().launch(show_error=True, debug=True)
|
|
|
|
| 317 |
|
| 318 |
|
| 319 |
with gr.Accordion("📒 相关信息", open=False):
|
| 320 |
+
_ = f""" ChatGLM2的可选参数信息:
|
| 321 |
* Low temperature: responses will be more deterministic and focused; High temperature: responses more creative.
|
| 322 |
* Suggested temperatures -- translation: up to 0.3; chatting: > 0.4
|
| 323 |
* Top P controls dynamic vocabulary selection based on context.
|
| 324 |
+
使用声音克隆功能时,请先在此程序的对应位置上传一段您喜欢的音频
|
| 325 |
"""
|
| 326 |
gr.Markdown(dedent(_))
|
| 327 |
chatbot = gr.Chatbot()
|
|
|
|
| 488 |
)
|
| 489 |
# """
|
| 490 |
|
| 491 |
+
gr.Markdown("### <center>注意❗:请不要生成会对个人以及组织造成侵害的内容,此程序仅供科研、学习及个人娱乐使用。</center>")
|
| 492 |
+
gr.Markdown("### <center>💡 - 如何使用此程序:输入您对ChatGLM的提问后,依次点击“开始和GLM2交流吧”、“生成对应的音频吧”、“开始AI声音克隆吧”三个按键即可;使用声音克隆功能时,请先上传一段您喜欢的音频</center>")
|
| 493 |
+
gr.HTML('''
|
| 494 |
+
<div class="footer">
|
| 495 |
+
<p>🌊🏞️🎶 - 江水东流急,滔滔无尽声。 明·顾璘
|
| 496 |
+
</p>
|
| 497 |
+
</div>
|
| 498 |
+
''')
|
| 499 |
+
|
| 500 |
|
| 501 |
demo.queue().launch(show_error=True, debug=True)
|