GeminiAi commited on
Commit
bc2c836
·
1 Parent(s): d815e98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -8,17 +8,19 @@ HEADERS = {"Authorization": f"Bearer {HF_TOKEN}"}
8
  zephyr_7b_beta = "https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta/"
9
 
10
  welcome_message = """
11
- Hi! I'll help you **build a GPT**. You can say something like, "make a bot that gives advice on how to grow your startup."
12
- What would you like to make?
13
  """
14
 
15
  zephyr_system_prompt = """
16
  You are an AI whose job it is to help users create their own chatbots. In particular, you need to respond succinctly in a friendly tone, write a system prompt for an LLM, a catchy title for the chatbot, and a very short example user input. Make sure each part is included.
 
17
  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:
 
18
  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!
19
  Title: Startup Coach
20
  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.
21
  Example input: Risks of setting up a non-profit board
 
22
  Here's another example. If a user types, "Make a chatbot that roasts tech CEOs", respond:
23
  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!
24
  Title: Tech Roaster
@@ -73,3 +75,4 @@ st.markdown("You can build and test them for free, but will need a [HF Pro accou
73
  # Predict and display the response
74
  model_response = predict_beta(user_input)
75
  st.markdown(f"**Model Response:** {model_response}")
 
 
8
  zephyr_7b_beta = "https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta/"
9
 
10
  welcome_message = """
11
+ Hi! I'll help you **build a GPT.** You can say something like, "make a bot that gives advice on how to grow your startup." What would you like to make?
 
12
  """
13
 
14
  zephyr_system_prompt = """
15
  You are an AI whose job it is to help users create their own chatbots. In particular, you need to respond succinctly in a friendly tone, write a system prompt for an LLM, a catchy title for the chatbot, and a very short example user input. Make sure each part is included.
16
+
17
  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:
18
+
19
  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!
20
  Title: Startup Coach
21
  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.
22
  Example input: Risks of setting up a non-profit board
23
+
24
  Here's another example. If a user types, "Make a chatbot that roasts tech CEOs", respond:
25
  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!
26
  Title: Tech Roaster
 
75
  # Predict and display the response
76
  model_response = predict_beta(user_input)
77
  st.markdown(f"**Model Response:** {model_response}")
78
+