-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplates.py
544 lines (430 loc) · 9.06 KB
/
templates.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
templates={
"plural":"""
singular:
cat
plural:
cats
singular:
mouse
plural:
mice
singular:
{singular:TEXT:}
plural:
{plural:TEXT:}
description:
{plural}
""",
"nameToDescription":"""
name:
Jan
Description:
Jan is a teenage girl with long blonde hair and a cute smile
name:
Hector
Description:
Hector is a jock who attends college and loves to play basketball
name:
{name:TEXT:}
description:
{description:TEXT:}
""",
"animal":"""
a list of animals
#
#NOREP
description:
cat
description:
dog
description:
horse
description:
cow
description:
{TEXT}
""",
"color":"""
Output a list of colors
#
#NOREP
description:
red
description:
green
description:
blue
description:
{TEXT}""",
"monster":"""
create a list of various fantasy monsters
#
#NOREP
description:
minotaur
description:
zombie
description:
gelatinous cube
description:
{TEXT}
""",
"character":"""
create a list of characters and their attributes
name:
Joe
gender:
male
hair color:
red
weapon:
tennis racket
description:
Joe is a fesity redhead who likes to play tennis
name:
Lily
gender:
female
hair color:
black
weapon:
syringe
description:
Lily is a cute girl with long black hair who studies biology
name:
{name:TEXT:}
gender:
{TEXT}
hair color:
{color}
weapon:
{TEXT}
description:
{description text:TEXT:}""",
"setting":"""
a list of movie settings
description:
a sunny beach
description:
a haunted mansion
description:
a trendy shop at the mall
description:
{TEXT}""",
"screenplay":"""
write a short screenplay about two people
character1:
{character1}
character2:
{character2}
setting:
{setting}
transcript:
{character1.name}: {TEXT}
{character2.name}: {TEXT}
{character1.name}: {TEXT}
{character2.name}: {TEXT}
{character1.name}: {TEXT}
{character2.name}: {TEXT}
""",
"fight":"""
write a short screenplay about two people fighting a monster
monster:
{monster}
character1:
{character1}
character2:
{character2}
setting:
{setting}
transcript:
{character1.name}: {TEXT}
{character2.name}: {TEXT}
[{character1.name} attacks the monster with their {character1.weapon}]
{character1.name}: {TEXT}
{character2.name}: {TEXT}
{character1.name}: {TEXT}
{character2.name}: {TEXT}
""",
"adventure":"""
write a short screenplay about a hero overcoming great odds
character1:
{character1}
plot summary:
{character1.name} is the hero of an epic fantasy adventure. Their goal is to {TEXT}.
In order to complete their goal, they will need to finish the following 3 steps
step 1:
{TEXT}
step 2:
{TEXT}
step 3:
{TEXT}
""",
"story":"""
write a short screenplay
character1:
{character1}
character2:
{character2}
plot summary:
{character1.name} stars in this anime about {story synopsis:TEXT:}
subplot:
{subplot:TEXT:}
scene 1:
{scene 1:TEXT:}
scene 2:
{scene 2:TEXT:}
scene 3:
{scene 3:TEXT:}
""",
"storyWithCharacters":"""
write a short screenplay
character1:
{character1}
character2:
{character2}
character3:
{character3}
character4:
{character4}
plot summary:
{character1.name} stars in this anime about {story synopsis:TEXT:}
subplot:
{subplot:TEXT:}
scene 1:
{character1.name} and {character2.name} {scene 1 text:TEXT:}
scene 2:
{character1.name} and {character3.name} {scene 2 text:TEXT:}
scene 3:
{character1.name} and {character4.name} {scene 3 text:TEXT:}
""",
"advancePlot":"""
write a short screenplay
character1:
{character1}
character2:
{character2}
plot summary:
{character1.name} stars in this anime about {story synopsis:TEXT:}
subplot:
{subplot:TEXT:}
scene 1:
{previous.scene 2:TEXT:}
scene 2:
{previous.scene 3:TEXT:}
scene 3:
{character1.name} and {character2.name} {scene 3 text:TEXT:}
""",
"plot overview":"""
character1:
{character1}
plot summary:
{character1.name} stars in this anime about {story synopsis:TEXT:}
part 1:
{part 1:TEXT:}
part 2:
{part 2:TEXT:}
part 3:
{part 3:TEXT:}
part 4:
{part 4:TEXT:}
part 5:
{part 5:TEXT:}
""",
"descriptionToCharacter":"""
description:
Amy is a cute girl with brown hair who likes the beauty industry
name:
Amy
gender:
female
weapon:
Scissors
hair color:
brown
description:
Dan is a male teen hacker with dark black hair who wears a turtleneck sweater
name:
Dan
gender:
male
weapon:
Keyboard
hair color:
dark black
description:
{description:TEXT:}
name:
{name:TEXT:}
gender:
{gender:TEXT:}
weapon:
{weapon:TEXT:}
hair color:
{hair color:TEXT:}
""",
"sceneToTranscript":"""
scene:
Amy and Jenna hang out after school
transcript:
Amy: School was so tough today!
Jenna: Don't worry, you'll get used to it!
Amy: I don't want to get used to it. I want to go back to summer break
Jenna: Fair enough, but we have to go to school
Amy: Why? Isn't school just a prison for kids?
Jenna: Yeah, probably!
scene:
{scene:TEXT:}
setting:
{setting:TEXT:}
transcript:
{character1.name}: {line 1 text:TEXT:}
{character2.name}: {line 2 text:TEXT:}
{character1.name}: {line 3 text:TEXT:}
{character2.name}: {line 4 text:TEXT:}
{character1.name}: {line 5 text:TEXT:}
{character2.name}: {line 6 text:TEXT:}
""",
"sceneToCharacters":"""
scene:
Jane and Dave go to the park
character1:
Jane
character2:
Dave
scene:
Linda hangs out with her friend
character1:
Linda
character2:
Susan
scene:
{scene:TEXT:}
character1:
{character1:TEXT:}
character2:
{character2:TEXT:}
""",
"fightScene":"""
write a short screenplay
character1:
{character1}
character2:
{character2}
plot summary:
{character1.name} stars in this anime about {story synopsis:TEXT:}
subplot:
{subplot:TEXT:}
scene 1:
{character1.name} and {character2.name} get ready to battle {monster}
scene 2:
{character1.name} and {character3.name} battle {monster}
scene 3:
{character1.name} and {character4.name} celebrate after defeating {monster}
""","novelSummary":"""
A list of novel titles and summaries
title:
how I became the world's strongest
summary:
an isekai about a boy who becomes the strongest wizard in the world
title:
I always wanted to be a bug
summary:
an isekai about a office worker who is reincarnated as a giant bug
title:
nevermind, I'll just stay home
summary:
a story about a hikomori who's too afraid to leave his room forced to save the world
title:
{title:TEXT:}
summary:
{summary:TEXT:}
""","novelCharacters":"""
main character name:
Jack
main character description:
Jack is a tough guy with a bad attitude
supporting character 1 name:
Jill
supporting character 1 description:
Jill may be cute, but she knows how to handle herself in a fight
supporting character 2 name:
Anna
supporting character 2 description:
Anna is a typical college teen who likes to surf
antagonist name:
Helen
antagonist description:
Helen is bent on revenge after the apple incident
main character name:
Faren
main character description:
A human who grew up in the woods and has lived there alone for years. He has not seen his parents since he was young.
supporting character 1 name:
Kira
supporting character 1 description:
Kira is the only other human in the forest, who is also Faren's best friend. She was raised by the elves.
supporting character 2 name:
Nil
supporting character 2 description:
Nil is the king of the dragons and has lived in the mountains for years. He is very wise and kind, but is also very powerful and fierce when someone threatens the forest or his people.
antagonist name:
Charon
antagonist description:
Charon is the queen of the undead, who reside in the marsh. She is very evil and enjoys seeing others suffer. She is jealous of Nil and will do anything to get her revenge on him.
>novel title:
>{novelSummary.title}
>Novel summary:
>{novelSummary.summary}
>make sure to give each character a name and a unique and intersting description
>character descriptions should be no more than 20-30 words
main character name:
{main character name:TEXT:}
main character description:
{main character description text:TEXT:}
supporting character 1 name:
{supporting character 1 name:TEXT:}
supporting character 1 description:
{supporting character 1 description text:TEXT:}
supporting character 2 name:
{supporting character 2 name:TEXT:}
supporting character 2 description:
{supporting character 2 description text:TEXT:}
antagonist name:
{antagonist name:TEXT:}
antagonist description:
{antagonist description text:TEXT:}
""","explainNovelTemplate":"""
Now generate a screenplay for each scene in the following novel:
{novelSummary.summary}
It contains characters:
main character:
{novelCharacters.main character description::novelSummary=novelSummary}
supporting character:
{novelCharacters.supporting character 1 description::novelSummary=novelSummary}
supporting character:
{novelCharacters.supporting character 2 description::novelSummary=novelSummary}
antagonist:
{novelCharacters.antagonist description::novelSummary=novelSummary}
And chapters:
{novelChapters::novelSummary=novelSummary,novelCharacters=novelCharacters}
""","name":"""
a list of names
#NOREP
description:
Jack
description:
Jill
description:
Emma
description:
Noah
description:
Olivia
description:
{TEXT}
""","storyObjects":"""
character type:
anime hero
"""
}