yuze.zyz 1 rok temu
rodzic
commit
0c69753898
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      pdf2zh/gui.py

+ 2 - 1
pdf2zh/gui.py

@@ -296,7 +296,7 @@ with gr.Blocks(
             for i in range(3):
                 envs.append(
                     gr.Textbox(
-                        visible=True,
+                        visible=False,
                         interactive=True,
                     )
                 )
@@ -438,6 +438,7 @@ with gr.Blocks(
         stop_translate_file,
         inputs=[state],
     )
+    demo.load(on_select_service, service, envs)
 
 
 def setup_gui(share=False):