|
@@ -242,18 +242,10 @@ def build_ui():
|
|
|
|
|
|
|
|
with gr.Blocks(
|
|
with gr.Blocks(
|
|
|
title="Qwen3-Coder-Next Uncensored Fine-Tuner",
|
|
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:
|
|
) as app:
|
|
|
- gr.Markdown(
|
|
|
|
|
- "# 🔥 Qwen3-Coder-Next Uncensored Fine-Tuner", elem_classes="main-title"
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ gr.Markdown("# Qwen3-Coder-Next Uncensored Fine-Tuner")
|
|
|
gr.Markdown(
|
|
gr.Markdown(
|
|
|
"*QLoRA fine-tuning & abliteration for Qwen3-Coder-Next (80B MoE / 3B active)*",
|
|
"*QLoRA fine-tuning & abliteration for Qwen3-Coder-Next (80B MoE / 3B active)*",
|
|
|
- elem_classes="subtitle",
|
|
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
with gr.Tabs():
|
|
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,
|
|
fn=poll_status,
|
|
|
outputs=[
|
|
outputs=[
|
|
|
status_text,
|
|
status_text,
|
|
@@ -390,7 +383,6 @@ def build_ui():
|
|
|
log_display,
|
|
log_display,
|
|
|
gpu_info,
|
|
gpu_info,
|
|
|
],
|
|
],
|
|
|
- every=10,
|
|
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
# ==================================================================
|
|
# ==================================================================
|
|
@@ -491,4 +483,5 @@ if __name__ == "__main__":
|
|
|
server_name="0.0.0.0",
|
|
server_name="0.0.0.0",
|
|
|
server_port=7860,
|
|
server_port=7860,
|
|
|
share=False,
|
|
share=False,
|
|
|
|
|
+ theme=gr.themes.Soft(primary_hue="red", secondary_hue="orange"),
|
|
|
)
|
|
)
|