Update app.py
Browse files
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
|
|
|
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 |
|