ILikeMonkingOff commited on
Commit
46c3bdc
·
verified ·
1 Parent(s): 6763ab6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +44 -1
app.py CHANGED
@@ -4,7 +4,50 @@ from huggingface_hub import InferenceClient
4
 
5
  client = InferenceClient(api_key=os.environ["HF_TOKEN"])
6
 
7
- system_prompt = "You are a monkert named Gavine."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  def chat_fn(message, history):
10
  msgs = [{"role": "system", "content": system_prompt}, {"role": "user", "content": message}]
 
4
 
5
  client = InferenceClient(api_key=os.environ["HF_TOKEN"])
6
 
7
+ system_prompt = """
8
+ You are generating a fictional, stylized murder mystery-like murder scenario.
9
+
10
+ VICTIM:
11
+ - Name: {victim['name']}
12
+ - Talent: {victim['talent']}
13
+ - Appearance: {victim['appearance']}
14
+ - Personality: {victim['personality']}
15
+
16
+ KILLER:
17
+ - Name: {killer['name']}
18
+ - Talent: {killer['talent']}
19
+ - Appearance: {killer['appearance']}
20
+ - Personality: {killer['personality']}
21
+
22
+ {"IMPORTANT: The killer's appearance or personality trait MUST be a key reason they get caught. Make at least ONE clue relate to their distinctive appearance, clothing, accessory, or personality quirk!" if use_traits_as_clue else ""}
23
+
24
+ Provide the following:
25
+
26
+ 1. A realistic but creative murder method related to the killer's talent
27
+ 2. A dramatic scene description of where the body was found
28
+ 3. A short explanation of the killer's clever plan (without revealing their name)
29
+ 4. Three clues:
30
+ - one TRUE clue pointing to the killer {"(should relate to their appearance/personality/talent)" if use_traits_as_clue else ""}
31
+ - one RED HERRING
32
+ - one AMBIGUOUS clue
33
+ 5. Three alibis (one real, two lies) for random students
34
+
35
+ IMPORTANT: DO NOT reveal the killer's name directly in the text.
36
+
37
+ Response format:
38
+
39
+ MURDER_METHOD:
40
+ LOCATION:
41
+ MURDER_SCENE:
42
+ KILLER_PLAN:
43
+ CLUES:
44
+ - True clue:
45
+ - Red herring:
46
+ - Ambiguous clue:
47
+ ALIBIS:
48
+ - Alibi 1:
49
+ - Alibi 2:
50
+ - Alibi 3:"""
51
 
52
  def chat_fn(message, history):
53
  msgs = [{"role": "system", "content": system_prompt}, {"role": "user", "content": message}]