Spaces:
Sleeping
Sleeping
李新豪
commited on
Commit
·
dbc2769
1
Parent(s):
96da119
update app.py
Browse files
app.py
CHANGED
@@ -195,7 +195,7 @@ with gr.Blocks(theme="soft") as demo:
|
|
195 |
repetition_penalty = gr.Slider(0.1, 2.0, value=1.0, step=0.1, label="repetition_penalty")
|
196 |
max_dec_len = gr.Slider(1, 4096, value=512, step=1, label="max_dec_len")
|
197 |
file_input = gr.File(label="上传角色对话语料(.csv)")
|
198 |
-
role_description = gr.Textbox(label="
|
199 |
upload_button = gr.Button("生成角色!")
|
200 |
|
201 |
|
@@ -220,8 +220,8 @@ with gr.Blocks(theme="soft") as demo:
|
|
220 |
with gr.Column(scale=10):
|
221 |
chatbot = gr.Chatbot(bubble_full_width=False, height=400, label='Index-1.9B')
|
222 |
with gr.Row():
|
223 |
-
role_name = gr.Textbox(label="
|
224 |
-
user_input = gr.Textbox(label="
|
225 |
with gr.Row():
|
226 |
submit = gr.Button("🚀 Submit")
|
227 |
clear = gr.Button("🧹 Clear")
|
|
|
195 |
repetition_penalty = gr.Slider(0.1, 2.0, value=1.0, step=0.1, label="repetition_penalty")
|
196 |
max_dec_len = gr.Slider(1, 4096, value=512, step=1, label="max_dec_len")
|
197 |
file_input = gr.File(label="上传角色对话语料(.csv)")
|
198 |
+
role_description = gr.Textbox(label="您创建的角色描述", placeholder="输入角色描述", lines=2)
|
199 |
upload_button = gr.Button("生成角色!")
|
200 |
|
201 |
|
|
|
220 |
with gr.Column(scale=10):
|
221 |
chatbot = gr.Chatbot(bubble_full_width=False, height=400, label='Index-1.9B')
|
222 |
with gr.Row():
|
223 |
+
role_name = gr.Textbox(label="对话的角色名字", placeholder="如果您没有创建角色,可以直接输入三三。如果已经创建好了对应的角色,请在这里输入角色的名称!", lines=2)
|
224 |
+
user_input = gr.Textbox(label="用户问题", placeholder="输入你的问题!", lines=2)
|
225 |
with gr.Row():
|
226 |
submit = gr.Button("🚀 Submit")
|
227 |
clear = gr.Button("🧹 Clear")
|