Spaces:
Runtime error
Runtime error
Commit
·
f31fa4a
1
Parent(s):
a2d5a45
add short
Browse files- genere_descriptions.py +53 -0
- prompts.py +6 -1
genere_descriptions.py
CHANGED
|
@@ -1,3 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
short_descriptions = [
|
| 2 |
"Urban Fantasy: Magic and supernatural elements intertwine with modern city life.",
|
| 3 |
"Alternative History: Reimagined past where historical events unfold differently.",
|
|
|
|
| 1 |
+
very_short_descriptions = [
|
| 2 |
+
"Urban Fantasy",
|
| 3 |
+
"Alternative History",
|
| 4 |
+
"Cyberpunk",
|
| 5 |
+
"Gothic Horror",
|
| 6 |
+
"Epic Fantasy",
|
| 7 |
+
"Western",
|
| 8 |
+
"Hard SciFi",
|
| 9 |
+
"Paranormal Mystery",
|
| 10 |
+
"Steampunk",
|
| 11 |
+
"Contemporary Romance",
|
| 12 |
+
"Satirical Comedy",
|
| 13 |
+
"Historical Fantasy",
|
| 14 |
+
"Post-Apocalyptic",
|
| 15 |
+
"Transgressive Fiction",
|
| 16 |
+
"Young Adult",
|
| 17 |
+
"Fairy Retellings",
|
| 18 |
+
"Southern Gothic",
|
| 19 |
+
"Urban Crime",
|
| 20 |
+
"Dark Fantasy",
|
| 21 |
+
"Space Opera",
|
| 22 |
+
"Romance",
|
| 23 |
+
"Mystery",
|
| 24 |
+
"Thriller",
|
| 25 |
+
"Horror",
|
| 26 |
+
"Science Fiction",
|
| 27 |
+
"Fantasy",
|
| 28 |
+
"Literary Fiction",
|
| 29 |
+
"Historical",
|
| 30 |
+
"Dystopian",
|
| 31 |
+
"Adventure",
|
| 32 |
+
"Crime",
|
| 33 |
+
"Supernatural",
|
| 34 |
+
"Magical Realism",
|
| 35 |
+
"Psychological Thriller",
|
| 36 |
+
"Military SciFi",
|
| 37 |
+
"Cozy Mystery",
|
| 38 |
+
"Technothriller",
|
| 39 |
+
"Alternate Reality",
|
| 40 |
+
"Superhero",
|
| 41 |
+
"Noir",
|
| 42 |
+
"Cosmic Horror",
|
| 43 |
+
"Time Travel",
|
| 44 |
+
"Political Thriller",
|
| 45 |
+
"Paranormal Romance",
|
| 46 |
+
"Sword Sorcery",
|
| 47 |
+
"Biopunk",
|
| 48 |
+
"Cli-Fi",
|
| 49 |
+
"Weird Fiction",
|
| 50 |
+
"New Adult",
|
| 51 |
+
"Afrofuturism"
|
| 52 |
+
]
|
| 53 |
+
|
| 54 |
short_descriptions = [
|
| 55 |
"Urban Fantasy: Magic and supernatural elements intertwine with modern city life.",
|
| 56 |
"Alternative History: Reimagined past where historical events unfold differently.",
|
prompts.py
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
-
from genere_descriptions import short_descriptions, detailed_descriptions
|
| 2 |
import random
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
def basic_prompt():
|
| 6 |
genre = random.choice(short_descriptions)
|
|
|
|
| 1 |
+
from genere_descriptions import short_descriptions, detailed_descriptions, very_short_descriptions
|
| 2 |
import random
|
| 3 |
|
| 4 |
+
def very_basic_prompt():
|
| 5 |
+
genre = random.choice(very_short_descriptions)
|
| 6 |
+
return f"""Write a blurb for a book in the following genre {genre}
|
| 7 |
+
Just return the blurb without any extra text. Blurb:"""
|
| 8 |
+
|
| 9 |
|
| 10 |
def basic_prompt():
|
| 11 |
genre = random.choice(short_descriptions)
|