Spaces:
Paused
Paused
Upload app.py
Browse files
app.py
CHANGED
|
@@ -79,16 +79,16 @@ with gr.Blocks() as demo:
|
|
| 79 |
chatbot = gr.Chatbot()
|
| 80 |
with gr.Row():
|
| 81 |
with gr.Column(scale=4):
|
| 82 |
-
with gr.Column(scale=
|
| 83 |
user_input = gr.Textbox(show_label=False, placeholder="请输入...", lines=10).style(
|
| 84 |
container=False)
|
| 85 |
with gr.Column(min_width=32, scale=1):
|
| 86 |
submitBtn = gr.Button("提交", variant="primary")
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
|
| 93 |
history = gr.State([])
|
| 94 |
|
|
|
|
| 79 |
chatbot = gr.Chatbot()
|
| 80 |
with gr.Row():
|
| 81 |
with gr.Column(scale=4):
|
| 82 |
+
with gr.Column(scale=3):
|
| 83 |
user_input = gr.Textbox(show_label=False, placeholder="请输入...", lines=10).style(
|
| 84 |
container=False)
|
| 85 |
with gr.Column(min_width=32, scale=1):
|
| 86 |
submitBtn = gr.Button("提交", variant="primary")
|
| 87 |
+
with gr.Column(scale=1):
|
| 88 |
+
emptyBtn = gr.Button("清除对话")
|
| 89 |
+
max_length = gr.Slider(0, 4096, value=2048, step=1.0, label="Maximum length", interactive=False, visible=False)
|
| 90 |
+
top_p = gr.Slider(0, 1, value=0.7, step=0.01, label="Top P", interactive=False, visible=False)
|
| 91 |
+
temperature = gr.Slider(0, 1, value=0.95, step=0.01, label="Temperature", interactive=False, visible=False)
|
| 92 |
|
| 93 |
history = gr.State([])
|
| 94 |
|