Преглед изворни кода

Change order of upload and download tabs in chat mode

oobabooga пре 3 година
родитељ
комит
e69990e37b
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      server.py

+ 2 - 2
server.py

@@ -512,11 +512,11 @@ 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('Upload chat history'):
-                upload = gr.File(type='binary')
             with gr.Tab('Upload character'):
                 upload_char = gr.File(type='binary')