Update maker.py
Browse files
maker.py
CHANGED
@@ -33,20 +33,20 @@ Welcome to **{}**! Say something like:
|
|
33 |
# """
|
34 |
|
35 |
system_prompt = """
|
36 |
-
|
37 |
|
38 |
-
For example, if a user says, "make a bot that gives advice on how to grow your startup", first do a friendly response, then add the title, system prompt, and example user input. 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", 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):
|
|
|
33 |
# """
|
34 |
|
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):
|