소스 검색

Reorganize chat UI elements

oobabooga 3 년 전
부모
커밋
f4674d34a9
1개의 변경된 파일9개의 추가작업 그리고 5개의 파일을 삭제
  1. 9 5
      server.py

+ 9 - 5
server.py

@@ -580,11 +580,15 @@ if args.chat or args.cai_chat:
         with gr.Row():
             check = gr.Checkbox(value=settings[f'stop_at_newline{suffix}'], label='Stop generating at new line character?')
         with gr.Row():
-            with gr.Tab('Upload chat history'):
-                upload = gr.File(type='binary')
-            with gr.Tab('Download chat history'):
-                download = gr.File()
-                save_btn = gr.Button(value="Click me")
+            with gr.Tab('Chat history'):
+                with gr.Row():
+                    with gr.Column():
+                        gr.Markdown('Upload')
+                        upload = gr.File(type='binary')
+                    with gr.Column():
+                        gr.Markdown('Download')
+                        download = gr.File()
+                        save_btn = gr.Button(value="Click me")
             with gr.Tab('Upload character'):
                 with gr.Row():
                     with gr.Column():