Spaces:
Running on Zero
Running on Zero
Label Heretic as Free CPU in the LoRA picker
Browse files
app.py
CHANGED
|
@@ -8832,6 +8832,7 @@ with gr.Blocks(title="Wan 2.2 Studio | NEW AI Scene Planner · 64 Clips · 3 Aud
|
|
| 8832 |
extension_seconds = gr.Slider(minimum=duration_seconds_input.minimum, maximum=duration_seconds_input.maximum,
|
| 8833 |
step=duration_seconds_input.step, value=duration_seconds_input.value, label="Seconds to add")
|
| 8834 |
extension_cpu_lora = gr.Button("Pick LoRAs from prompt (Free · CPU)", size="sm", variant="secondary")
|
|
|
|
| 8835 |
extension_cpu_status = gr.Markdown("Matches names and trigger words in your LoRA library.")
|
| 8836 |
extension_active_loras = gr.Markdown(active_loras_default)
|
| 8837 |
extension_cpu_picks = _wan_cpu_picker_panel()
|
|
@@ -8920,6 +8921,7 @@ with gr.Blocks(title="Wan 2.2 Studio | NEW AI Scene Planner · 64 Clips · 3 Aud
|
|
| 8920 |
"main prompt above, unchanged.",
|
| 8921 |
)
|
| 8922 |
scene_cpu_lora = gr.Button("Pick LoRAs from scene (Free · CPU)", size="sm", variant="secondary")
|
|
|
|
| 8923 |
scene_cpu_status = gr.Markdown("")
|
| 8924 |
scene_active_loras = gr.Markdown(active_loras_default)
|
| 8925 |
scene_cpu_picks = _wan_cpu_picker_panel()
|
|
@@ -9138,9 +9140,14 @@ with gr.Blocks(title="Wan 2.2 Studio | NEW AI Scene Planner · 64 Clips · 3 Aud
|
|
| 9138 |
duration_seconds_input.render()
|
| 9139 |
cpu_lora = gr.Button("Pick LoRAs from prompt (Free · CPU)", size="sm", variant="secondary")
|
| 9140 |
cpu_lora_status = gr.Markdown("Matches names and trigger words in your LoRA library.")
|
| 9141 |
-
if os.environ.get(
|
|
|
|
|
|
|
|
|
|
| 9142 |
with gr.Accordion("CPU AI sign-in (owner)", open=False):
|
| 9143 |
gr.LoginButton(value="Sign in with my Hugging Face account")
|
|
|
|
|
|
|
| 9144 |
active_loras = gr.Markdown(active_loras_default, elem_id="active-loras")
|
| 9145 |
cpu_picks = _wan_cpu_picker_panel()
|
| 9146 |
cpu_refresh = gr.Button("Refresh LoRAs - next group", size="sm", variant="secondary")
|
|
|
|
| 8832 |
extension_seconds = gr.Slider(minimum=duration_seconds_input.minimum, maximum=duration_seconds_input.maximum,
|
| 8833 |
step=duration_seconds_input.step, value=duration_seconds_input.value, label="Seconds to add")
|
| 8834 |
extension_cpu_lora = gr.Button("Pick LoRAs from prompt (Free · CPU)", size="sm", variant="secondary")
|
| 8835 |
+
gr.Markdown("**Heretic · Free CPU** · Owner sign-in required.")
|
| 8836 |
extension_cpu_status = gr.Markdown("Matches names and trigger words in your LoRA library.")
|
| 8837 |
extension_active_loras = gr.Markdown(active_loras_default)
|
| 8838 |
extension_cpu_picks = _wan_cpu_picker_panel()
|
|
|
|
| 8921 |
"main prompt above, unchanged.",
|
| 8922 |
)
|
| 8923 |
scene_cpu_lora = gr.Button("Pick LoRAs from scene (Free · CPU)", size="sm", variant="secondary")
|
| 8924 |
+
gr.Markdown("**Heretic · Free CPU** · Owner sign-in required.")
|
| 8925 |
scene_cpu_status = gr.Markdown("")
|
| 8926 |
scene_active_loras = gr.Markdown(active_loras_default)
|
| 8927 |
scene_cpu_picks = _wan_cpu_picker_panel()
|
|
|
|
| 9140 |
duration_seconds_input.render()
|
| 9141 |
cpu_lora = gr.Button("Pick LoRAs from prompt (Free · CPU)", size="sm", variant="secondary")
|
| 9142 |
cpu_lora_status = gr.Markdown("Matches names and trigger words in your LoRA library.")
|
| 9143 |
+
if all(os.environ.get(name) for name in (
|
| 9144 |
+
"OAUTH_CLIENT_ID", "OAUTH_CLIENT_SECRET", "OAUTH_SCOPES", "OPENID_PROVIDER_URL",
|
| 9145 |
+
)):
|
| 9146 |
+
gr.Markdown("**Heretic · Free CPU** · Available to the owner after Hugging Face sign-in.")
|
| 9147 |
with gr.Accordion("CPU AI sign-in (owner)", open=False):
|
| 9148 |
gr.LoginButton(value="Sign in with my Hugging Face account")
|
| 9149 |
+
else:
|
| 9150 |
+
gr.Markdown("**Heretic · Free CPU** · Hugging Face sign-in is temporarily unavailable.")
|
| 9151 |
active_loras = gr.Markdown(active_loras_default, elem_id="active-loras")
|
| 9152 |
cpu_picks = _wan_cpu_picker_panel()
|
| 9153 |
cpu_refresh = gr.Button("Refresh LoRAs - next group", size="sm", variant="secondary")
|