ricklamers commited on
Commit
2eef1ae
1 Parent(s): 5199efe

fix: fix example format

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -176,20 +176,20 @@ def respond(message, history, system_message):
176
 
177
  yield final_message
178
 
 
179
 
180
  demo = gr.ChatInterface(
181
  respond,
182
  additional_inputs=[
183
  gr.Textbox(
184
- value="You are a friendly Chatbot with access to a calculator. Don't mention that we are using functions defined in Python.",
185
  label="System message",
186
  ),
187
  ],
188
  type="messages",
189
  examples=[
190
- "What is 42 to the power of 42?",
191
- "Calculate 3.14159 * 2",
192
- "Compute 2^10",
193
  ],
194
  title="Groq Tool Use Chat",
195
  description="This chatbot uses the `llama3-groq-8b-8192-tool-use-preview` LLM with tool use capabilities, including a calculator function.",
 
176
 
177
  yield final_message
178
 
179
+ system_prompt = "You are a friendly Chatbot with access to a calculator. Don't mention that we are using functions defined in Python."
180
 
181
  demo = gr.ChatInterface(
182
  respond,
183
  additional_inputs=[
184
  gr.Textbox(
185
+ value=system_prompt,
186
  label="System message",
187
  ),
188
  ],
189
  type="messages",
190
  examples=[
191
+ ["What is 42 to the power of 2?", system_prompt],
192
+ ["If I have 3 apples and multiply them by 7, how many do I have?", system_prompt],
 
193
  ],
194
  title="Groq Tool Use Chat",
195
  description="This chatbot uses the `llama3-groq-8b-8192-tool-use-preview` LLM with tool use capabilities, including a calculator function.",