Yoyo2004 commited on
Commit
7560532
·
verified ·
1 Parent(s): 8a45366

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -204,6 +204,7 @@ body, .gradio-container {
204
  def paginate_story(story_data, chars_per_page=450, first_page_ratio=0.8):
205
  """
206
  分章 -> 分页
 
207
  """
208
  if not story_data:
209
  return [], []
@@ -401,7 +402,8 @@ def bridge_to_backend(premise):
401
  full_text_html = build_full_text_html(full_text)
402
 
403
  book_html = render_book_page(flat_pages, 0)
404
-
 
405
  yield backend_log, outline, plan, personas_html, flat_pages, chap_indices, full_text_html, book_html
406
 
407
  except Exception as e:
@@ -426,7 +428,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="indigo", neutral_hue="slate"),
426
  <div class="title-wrapper">
427
  <span class="title-text">LongStory Agent</span>
428
  </div>
429
- <div class="subtitle-text">Deep Persona-Driven Recursive Novel Generation</div>
430
  </div>
431
  """)
432
 
 
204
  def paginate_story(story_data, chars_per_page=450, first_page_ratio=0.8):
205
  """
206
  分章 -> 分页
207
+ story_data: List[{"title": ..., "content": ...}, ...]
208
  """
209
  if not story_data:
210
  return [], []
 
402
  full_text_html = build_full_text_html(full_text)
403
 
404
  book_html = render_book_page(flat_pages, 0)
405
+
406
+ # flat_pages: List[Dict]
407
  yield backend_log, outline, plan, personas_html, flat_pages, chap_indices, full_text_html, book_html
408
 
409
  except Exception as e:
 
428
  <div class="title-wrapper">
429
  <span class="title-text">LongStory Agent</span>
430
  </div>
431
+ <div class="subtitle-text"></div>
432
  </div>
433
  """)
434