bstraehle commited on
Commit
e4cf670
·
verified ·
1 Parent(s): 377c496

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -12,6 +12,7 @@ def create_assistant(client):
12
  name="Math Tutor",
13
  instructions="You are a personal math tutor. Answer questions briefly, in a sentence or less.",
14
  model="gpt-4-1106-preview",
 
15
  )
16
  show_json("assistant", assistant)
17
  return assistant
@@ -94,7 +95,8 @@ gr.ChatInterface(
94
  retry_btn=None,
95
  undo_btn=None,
96
  clear_btn="Clear",
97
- examples=[["I need to solve the equation '2x + 10 = 7.5'. Can you help me?", "sk-<BringYourOwn>"]],
 
98
  cache_examples=False,
99
  additional_inputs=[
100
  gr.Textbox("sk-", label="OpenAI API Key", type = "password"),
 
12
  name="Math Tutor",
13
  instructions="You are a personal math tutor. Answer questions briefly, in a sentence or less.",
14
  model="gpt-4-1106-preview",
15
+ tools=[{"type": "code_interpreter"}],
16
  )
17
  show_json("assistant", assistant)
18
  return assistant
 
95
  retry_btn=None,
96
  undo_btn=None,
97
  clear_btn="Clear",
98
+ examples=[["I need to solve the equation '2x + 10 = 7.5'. Can you help me?", "sk-<BringYourOwn>"],
99
+ ["Generate the first 20 fibbonaci numbers with code.", "sk-<BringYourOwn>"]],
100
  cache_examples=False,
101
  additional_inputs=[
102
  gr.Textbox("sk-", label="OpenAI API Key", type = "password"),