Julian Bilcke commited on
Commit
a247fdb
·
1 Parent(s): c469510
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -830,7 +830,7 @@ def infer_page(
830
 
831
  # Check page limit (reduced to 24 for performance)
832
  if session_manager.metadata["total_pages"] >= 24:
833
- return session_state, None, None, f"Page limit reached"
834
 
835
  generated_images = []
836
  used_seeds = []
@@ -914,7 +914,7 @@ def infer_page(
914
  next_page_num = page_num + 1
915
  button_label = f"Generate page {next_page_num}" if next_page_num <= 24 else "Page limit reached"
916
 
917
- return session_state, pdf_path, pdf_path, button_label
918
 
919
  # New inference function with automatic aspect ratio
920
  def infer_single_auto(
 
830
 
831
  # Check page limit (reduced to 24 for performance)
832
  if session_manager.metadata["total_pages"] >= 24:
833
+ return session_state, None, f"Page limit reached"
834
 
835
  generated_images = []
836
  used_seeds = []
 
914
  next_page_num = page_num + 1
915
  button_label = f"Generate page {next_page_num}" if next_page_num <= 24 else "Page limit reached"
916
 
917
+ return session_state, pdf_path, button_label
918
 
919
  # New inference function with automatic aspect ratio
920
  def infer_single_auto(