Explorar el Código

Submit with enter instead of shift+enter in chat mode

oobabooga hace 3 años
padre
commit
059d47edb5
Se han modificado 1 ficheros con 1 adiciones y 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))
         else:
             display1 = gr.Chatbot()
-        textbox = gr.Textbox(lines=2, label='Input')
+        textbox = gr.Textbox(label='Input')
         btn = gr.Button("Generate")
         with gr.Row():
             stop = gr.Button("Stop")