Ivan000 commited on
Commit
c0ff2ab
·
verified ·
1 Parent(s): 87947e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- ).style(container=False)
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