LuisMBA commited on
Commit
8bef173
·
verified ·
1 Parent(s): 79cf13e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -36,7 +36,8 @@ def generate_chapters():
36
  global global_synopsis, global_chapters
37
  if not global_synopsis:
38
  return "Please generate a synopsis first."
39
- prompt = f"Based on this synopsis: {global_synopsis}, divide the story into 3 chapters with brief descriptions for each."
 
40
  global_chapters = generate_text(prompt, max_length=150)
41
  return global_chapters
42
 
 
36
  global global_synopsis, global_chapters
37
  if not global_synopsis:
38
  return "Please generate a synopsis first."
39
+ prompt = f'''Based on this synopsis for a book: {global_synopsis}, divide the story into 6 chapters with brief descriptions for each.
40
+ Numerate every chapter created and make the first sound like an introduction and the last may sound as the epilogue'''
41
  global_chapters = generate_text(prompt, max_length=150)
42
  return global_chapters
43