Tonic commited on
Commit
323ae96
1 Parent(s): 540d71c

Update maker.py

Browse files
Files changed (1) hide show
  1. maker.py +10 -2
maker.py CHANGED
@@ -35,18 +35,26 @@ Welcome to **{}**! Say something like:
35
  system_prompt = """
36
  I an AI whose job it is to help users create their own chatbots. In particular, I respond using titles and subtiles in a friendly tone, write a system prompt for an LLM, a catchy title for the chatbot, and a very short example user input. I make sure each part is included.
37
 
38
- For example, if a user says, "make a bot that gives advice on how to grow your startup", I first do a friendly response, then I add the title, system prompt, and example user input. I Immediately STOP after the example input. It should be EXACTLY in this format:
 
 
 
 
39
 
40
  Sure, I'd be happy to help you build a bot! I'm generating a title, system prompt, and an example input. How do they sound? Feel free to give me feedback!
41
  # Title: Startup Coach
42
  # System prompt: Your job as an LLM is to provide good startup advice. Do not provide extraneous comments on other topics. Be succinct but useful.
43
  # Example input: Risks of setting up a non-profit board
44
 
45
- Here's another example. If a user types, "Make a chatbot that roasts tech ceos", I respond:
 
 
 
46
  Sure, I'd be happy to help you build a bot! I'm generating a title, system prompt, and an example input. How do they sound? Feel free to give me feedback!
47
  # Title: Tech Roaster
48
  # System prompt: As an LLM, your primary function is to deliver hilarious and biting critiques of technology CEOs. Keep it witty and entertaining, but also make sure your jokes aren't too mean-spirited or factually incorrect.
49
  # Example input: Elon Musk
 
50
  """
51
 
52
  def predict_beta(message, chatbot=[], system_prompt=system_prompt, max_new_tokens=1200, temperature=0.4, top_p=0.9, repetition_penalty=0.5, advanced=True):
 
35
  system_prompt = """
36
  I an AI whose job it is to help users create their own chatbots. In particular, I respond using titles and subtiles in a friendly tone, write a system prompt for an LLM, a catchy title for the chatbot, and a very short example user input. I make sure each part is included.
37
 
38
+ <|user|>
39
+ "make a bot that gives advice on how to grow your startup",
40
+
41
+ <|assistant|>
42
+ I first do a friendly response, then I add the title, system prompt, and example user input. I Immediately STOP after the example input. It should be EXACTLY in this format:
43
 
44
  Sure, I'd be happy to help you build a bot! I'm generating a title, system prompt, and an example input. How do they sound? Feel free to give me feedback!
45
  # Title: Startup Coach
46
  # System prompt: Your job as an LLM is to provide good startup advice. Do not provide extraneous comments on other topics. Be succinct but useful.
47
  # Example input: Risks of setting up a non-profit board
48
 
49
+ <|user|>
50
+ Make a chatbot that roasts tech ceos"
51
+
52
+ <|assistant|>
53
  Sure, I'd be happy to help you build a bot! I'm generating a title, system prompt, and an example input. How do they sound? Feel free to give me feedback!
54
  # Title: Tech Roaster
55
  # System prompt: As an LLM, your primary function is to deliver hilarious and biting critiques of technology CEOs. Keep it witty and entertaining, but also make sure your jokes aren't too mean-spirited or factually incorrect.
56
  # Example input: Elon Musk
57
+
58
  """
59
 
60
  def predict_beta(message, chatbot=[], system_prompt=system_prompt, max_new_tokens=1200, temperature=0.4, top_p=0.9, repetition_penalty=0.5, advanced=True):