Browse Source

Make Generate/Stop buttons smaller in notebook mode

oobabooga 2 năm trước cách đây
mục cha
commit
202e981d00
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      server.py

+ 6 - 2
server.py

@@ -417,8 +417,12 @@ def create_interface():
                             shared.gradio['html'] = gr.HTML()
 
                         with gr.Row():
-                            shared.gradio['Generate'] = gr.Button('Generate')
-                            shared.gradio['Stop'] = gr.Button('Stop')
+                            with gr.Column():
+                                with gr.Row():
+                                    shared.gradio['Generate'] = gr.Button('Generate')
+                                    shared.gradio['Stop'] = gr.Button('Stop')
+                            with gr.Column():
+                                pass
 
                     with gr.Column(scale=1):
                         gr.Markdown("\n")