Spaces:
Runtime error
Runtime error
huolongguo10
commited on
Commit
·
42029d6
1
Parent(s):
9ac6c7f
Update app.py
Browse files
app.py
CHANGED
@@ -83,9 +83,8 @@ def chatyuan_bot_regenerate(input, history):
|
|
83 |
block = gr.Blocks()
|
84 |
|
85 |
with block as demo:
|
86 |
-
gr.Markdown("""<h1><center
|
87 |
-
|
88 |
-
<font size=4>注意:gradio对markdown代码格式展示有限</font>
|
89 |
""")
|
90 |
chatbot = gr.Chatbot(label='ChatYuan')
|
91 |
message = gr.Textbox()
|
@@ -143,10 +142,7 @@ def chatyuan_bot_api(api_key, input, history):
|
|
143 |
block = gr.Blocks()
|
144 |
|
145 |
with block as demo_1:
|
146 |
-
gr.Markdown("""
|
147 |
-
<font size=4>回答来自ChatYuan, 以上是模型生成的结果, 请谨慎辨别和参考, 不代表任何人观点 | Answer generated by ChatYuan model</font>
|
148 |
-
<font size=4>注意:gradio对markdown代码格式展示有限</font>
|
149 |
-
<font size=4>在使用此功能前,你需要有个API key. API key 可以通过这个<a href='https://www.clueai.cn/' target="_blank">平台</a>获取</font>
|
150 |
""")
|
151 |
api_key = gr.inputs.Textbox(label="请输入你的api-key(必填)", default="", type='password')
|
152 |
chatbot = gr.Chatbot(label='ChatYuan')
|
|
|
83 |
block = gr.Blocks()
|
84 |
|
85 |
with block as demo:
|
86 |
+
gr.Markdown("""<h1><center>huolongguo10助手</center></h1>
|
87 |
+
|
|
|
88 |
""")
|
89 |
chatbot = gr.Chatbot(label='ChatYuan')
|
90 |
message = gr.Textbox()
|
|
|
142 |
block = gr.Blocks()
|
143 |
|
144 |
with block as demo_1:
|
145 |
+
gr.Markdown("""
|
|
|
|
|
|
|
146 |
""")
|
147 |
api_key = gr.inputs.Textbox(label="请输入你的api-key(必填)", default="", type='password')
|
148 |
chatbot = gr.Chatbot(label='ChatYuan')
|