Przeglądaj źródła

Deploy Qwen3-Coder-Next uncensored fine-tuner

Sameric 4 miesięcy temu
rodzic
commit
974ece95d1
1 zmienionych plików z 5 dodań i 12 usunięć
  1. 5 12
      app.py

+ 5 - 12
app.py

@@ -242,18 +242,10 @@ def build_ui():
 
     with gr.Blocks(
         title="Qwen3-Coder-Next Uncensored Fine-Tuner",
-        theme=gr.themes.Soft(primary_hue="red", secondary_hue="orange"),
-        css="""
-        .main-title { text-align: center; margin-bottom: 0; }
-        .subtitle { text-align: center; color: #888; margin-top: 0; }
-        """,
     ) as app:
-        gr.Markdown(
-            "# 🔥 Qwen3-Coder-Next Uncensored Fine-Tuner", elem_classes="main-title"
-        )
+        gr.Markdown("# Qwen3-Coder-Next Uncensored Fine-Tuner")
         gr.Markdown(
             "*QLoRA fine-tuning & abliteration for Qwen3-Coder-Next (80B MoE / 3B active)*",
-            elem_classes="subtitle",
         )
 
         with gr.Tabs():
@@ -380,8 +372,9 @@ def build_ui():
                     ],
                 )
 
-                # Auto-refresh every 10 seconds
-                app.load(
+                # Auto-refresh every 10 seconds using Timer
+                timer = gr.Timer(value=10)
+                timer.tick(
                     fn=poll_status,
                     outputs=[
                         status_text,
@@ -390,7 +383,6 @@ def build_ui():
                         log_display,
                         gpu_info,
                     ],
-                    every=10,
                 )
 
             # ==================================================================
@@ -491,4 +483,5 @@ if __name__ == "__main__":
         server_name="0.0.0.0",
         server_port=7860,
         share=False,
+        theme=gr.themes.Soft(primary_hue="red", secondary_hue="orange"),
     )