Explorar o código

Submit with enter instead of shift+enter in chat mode

oobabooga %!s(int64=3) %!d(string=hai) anos
pai
achega
059d47edb5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server.py

+ 1 - 1
server.py

@@ -430,7 +430,7 @@ if args.chat or args.cai_chat:
             display1 = gr.HTML(value=generate_chat_html([], "", "", character))
             display1 = gr.HTML(value=generate_chat_html([], "", "", character))
         else:
         else:
             display1 = gr.Chatbot()
             display1 = gr.Chatbot()
-        textbox = gr.Textbox(lines=2, label='Input')
+        textbox = gr.Textbox(label='Input')
         btn = gr.Button("Generate")
         btn = gr.Button("Generate")
         with gr.Row():
         with gr.Row():
             stop = gr.Button("Stop")
             stop = gr.Button("Stop")