raubatz Oz commited on
Commit
7386153
Β·
1 Parent(s): 12b5e99

Disable undownloaded-image warning before generate

Browse files

Leave tracking hooks in place; turn off the Generate toast until the feature is finished.

Co-Authored-By: Oz <oz-agent@warp.dev>

Files changed (1) hide show
  1. app.py +5 -10
app.py CHANGED
@@ -304,16 +304,11 @@ def mark_from_gallery_signal(signal, gallery_value, pending_list, downloaded_lis
304
 
305
 
306
  def warn_undownloaded_before_generate(pending_list, gallery_value):
307
- """Toast if the current gallery still has undownloaded images."""
308
- paths = gallery_image_paths(gallery_value)
309
- pending = set(pending_list or [])
310
- still = [p for p in paths if p in pending]
311
- if still:
312
- gr.Warning(
313
- f"{len(still)} generated image(s) not downloaded yet β€” "
314
- "this run will replace the output gallery."
315
- )
316
- return None # also clears selected_output_state when chained
317
 
318
  # ── Model load ──────────────────────────────────────────────────────────────
319
  # Pipeline class depends on MODEL_VARIANT and is the only thing here that
 
304
 
305
 
306
  def warn_undownloaded_before_generate(pending_list, gallery_value):
307
+ """Disabled for now β€” undownloaded tracking will return later.
308
+
309
+ Still clears selected_output_state when chained before generate.
310
+ """
311
+ return None
 
 
 
 
 
312
 
313
  # ── Model load ──────────────────────────────────────────────────────────────
314
  # Pipeline class depends on MODEL_VARIANT and is the only thing here that