Spaces:
Running
Running
Commit
•
10a30e6
1
Parent(s):
a93c8eb
update prompt logic
Browse files- app.py +2 -2
- genere_descriptions.py +3 -1
app.py
CHANGED
@@ -116,8 +116,8 @@ def weighted_random_choice(choices: List[Tuple[Callable, float]]) -> Callable:
|
|
116 |
def generate_prompt() -> str:
|
117 |
prompt_choices = [
|
118 |
(detailed_genre_description_prompt, 0.5),
|
119 |
-
(basic_prompt, 0.
|
120 |
-
(very_basic_prompt, 0.
|
121 |
]
|
122 |
|
123 |
selected_prompt_func = weighted_random_choice(prompt_choices)
|
|
|
116 |
def generate_prompt() -> str:
|
117 |
prompt_choices = [
|
118 |
(detailed_genre_description_prompt, 0.5),
|
119 |
+
(basic_prompt, 0.2),
|
120 |
+
(very_basic_prompt, 0.3),
|
121 |
]
|
122 |
|
123 |
selected_prompt_func = weighted_random_choice(prompt_choices)
|
genere_descriptions.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
very_short_descriptions = [
|
2 |
"Urban Fantasy",
|
|
|
3 |
"Alternative History",
|
|
|
4 |
"Cyberpunk",
|
5 |
"Gothic Horror",
|
6 |
"Epic Fantasy",
|
@@ -122,7 +124,7 @@ This genre appeals to readers who enjoy intellectually stimulating narratives th
|
|
122 |
"""This genre blends elements of science fiction with sharp wit and accessible storytelling. The works often feature futuristic settings, advanced technology, and interstellar travel but focus on relatable characters and contemporary social issues.
|
123 |
The writing style is characterized by snappy dialogue, clever humor, and a lighthearted tone that makes complex sci-fi concepts approachable to a wide audience. Stories in this genre frequently explore themes of diplomacy, military service, and the challenges of human (and alien) relationships against the backdrop of galactic politics.""",
|
124 |
"""This particular brand of horror often blends the mundane with the macabre, creating a sense of unease in everyday settings. The stories frequently occur in small towns where dark secrets lurk beneath seemingly ordinary facades.
|
125 |
-
These tales often feature ordinary people thrust into extraordinary and terrifying situations, forcing them to confront both supernatural threats and their own inner demons. The horror is
|
126 |
A hallmark of this style is the meticulous development of characters and their relationships, making readers deeply invested in their fates. The author excels at creating a large cast of interconnected characters, each with their own quirks and backstories.
|
127 |
Supernatural elements are common, ranging from psychic abilities and ghostly apparitions to malevolent creatures and alternate dimensions. However, these fantastical elements are typically grounded in a recognizable reality, making them all the more unsettling.
|
128 |
""",
|
|
|
1 |
very_short_descriptions = [
|
2 |
"Urban Fantasy",
|
3 |
+
"Literary Fiction",
|
4 |
"Alternative History",
|
5 |
+
"Historical Fiction",
|
6 |
"Cyberpunk",
|
7 |
"Gothic Horror",
|
8 |
"Epic Fantasy",
|
|
|
124 |
"""This genre blends elements of science fiction with sharp wit and accessible storytelling. The works often feature futuristic settings, advanced technology, and interstellar travel but focus on relatable characters and contemporary social issues.
|
125 |
The writing style is characterized by snappy dialogue, clever humor, and a lighthearted tone that makes complex sci-fi concepts approachable to a wide audience. Stories in this genre frequently explore themes of diplomacy, military service, and the challenges of human (and alien) relationships against the backdrop of galactic politics.""",
|
126 |
"""This particular brand of horror often blends the mundane with the macabre, creating a sense of unease in everyday settings. The stories frequently occur in small towns where dark secrets lurk beneath seemingly ordinary facades.
|
127 |
+
These tales often feature ordinary people thrust into extraordinary and terrifying situations, forcing them to confront both supernatural threats and their own inner demons. The horror is usually psychological as well as physical, with characters' fears and traumas playing pivotal roles in the narrative.
|
128 |
A hallmark of this style is the meticulous development of characters and their relationships, making readers deeply invested in their fates. The author excels at creating a large cast of interconnected characters, each with their own quirks and backstories.
|
129 |
Supernatural elements are common, ranging from psychic abilities and ghostly apparitions to malevolent creatures and alternate dimensions. However, these fantastical elements are typically grounded in a recognizable reality, making them all the more unsettling.
|
130 |
""",
|