-
Notifications
You must be signed in to change notification settings - Fork 10
/
outline.py
56 lines (47 loc) · 1.34 KB
/
outline.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import sys
import readline
import json
from novel import *
from save import *
from settings import *
from misc import *
print("LLM Novel Writer - Outlining")
print("----------------------------")
novel_number, novel = load_or_create()
# Synopsis
if not getattr(novel, "synopsis", None):
novel.setup()
redo = True
while redo:
print(novel.create_synopsis(writer))
redo = redo_prompt()
novel_number = save_new(novel)
# Characters
if not getattr(novel, "characters", None):
redo = True
while redo:
print(novel.create_characters(writer))
redo = redo_prompt()
save(novel, novel_number)
# Settings
if not getattr(novel, "settings", None):
redo = True
while redo:
print(novel.create_settings(writer))
redo = redo_prompt()
save(novel, novel_number)
# Plot
if not getattr(novel, "plot", None):
redo = True
while redo:
print(novel.create_plot(writer))
redo = redo_prompt()
save(novel, novel_number)
# Title
if not getattr(novel, "title", None):
redo = True
while redo:
print(novel.create_title(writer))
redo = redo_prompt()
save(novel, novel_number)
print(f"This concludes the novel outlining process. You should now review the file at novels/{novel_number}.json and make edits as needed. After editing the file, run draft.py.")