Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -25,13 +25,13 @@ def generate_response(history, user_input):
|
|
25 |
with gr.Blocks() as demo:
|
26 |
gr.Markdown("## Cotype-Nano Text Generation Chat")
|
27 |
|
28 |
-
chatbot = gr.Chatbot([], elem_id="chatbot")
|
29 |
|
30 |
with gr.Row():
|
31 |
txt = gr.Textbox(
|
32 |
show_label=False,
|
33 |
placeholder="Введите ваш запрос здесь...",
|
34 |
-
)
|
35 |
|
36 |
txt.submit(generate_response, [chatbot, txt], [chatbot, txt])
|
37 |
|
|
|
25 |
with gr.Blocks() as demo:
|
26 |
gr.Markdown("## Cotype-Nano Text Generation Chat")
|
27 |
|
28 |
+
chatbot = gr.Chatbot([], elem_id="chatbot", type='messages')
|
29 |
|
30 |
with gr.Row():
|
31 |
txt = gr.Textbox(
|
32 |
show_label=False,
|
33 |
placeholder="Введите ваш запрос здесь...",
|
34 |
+
)
|
35 |
|
36 |
txt.submit(generate_response, [chatbot, txt], [chatbot, txt])
|
37 |
|