Ver código fonte

feat (gui): better progress bar

Rongxin 1 ano atrás
pai
commit
b858569ab0
1 arquivos alterados com 9 adições e 1 exclusões
  1. 9 1
      pdf2zh/gui.py

+ 9 - 1
pdf2zh/gui.py

@@ -141,7 +141,7 @@ def translate(
         print(f"Command completed with return code: {return_code}")
 
         # Check if translation was successful
-        translated_file = temp_path / "input-zh.pdf" # <= Do not change filename
+        translated_file = temp_path / "input-zh.pdf"  # <= Do not change filename
         dual_file = temp_path / "input-dual.pdf"
         print(f"Files after translation: {os.listdir(temp_path)}")
 
@@ -236,6 +236,14 @@ with gr.Blocks(
         background-color: #E8F3FF !important;
         transition: background-color 0.2s ease-in;
     }
+
+.progress-bar-wrap {
+  border-radius: 8px !important;
+}
+.progress-bar {
+  border-radius: 8px !important;
+}
+
     # .input-file label {
     #     color: #165DFF !important;
     #     border: 1.2px dashed #165DFF !important;