bstraehle commited on
Commit
1d1469b
1 Parent(s): 14087df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -9,9 +9,9 @@ _client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))
9
  _assistant, _thread = None, None
10
 
11
  ###
12
- triage_agent = create_triage_agent(client)
13
- sales_agent = create_sales_agent(client)
14
- issues_repairs_agent = create_issues_repairs_agent(client)
15
  ###
16
 
17
  def create_assistant(client):
@@ -111,13 +111,12 @@ gr.ChatInterface(
111
  chat,
112
  chatbot=gr.Chatbot(height=300),
113
  textbox=gr.Textbox(placeholder="Question", container=False, scale=7),
114
- title="Multi-Assistant Demo",
115
- description="Ask AAA Assistant, BBB Assistant, and CCC Assistant any question",
116
  retry_btn=None,
117
  undo_btn=None,
118
  clear_btn="Clear",
119
- examples=[["I need to solve the equation '2x + 11 = 7.5'. Can you help me?", "sk-<BringYourOwn>"],
120
- ["Generate the first 20 fibbonaci numbers with code.", "sk-<BringYourOwn>"]],
121
  cache_examples=False,
122
  additional_inputs=[
123
  gr.Textbox("sk-", label="OpenAI API Key", type = "password"),
 
9
  _assistant, _thread = None, None
10
 
11
  ###
12
+ triage_agent = create_triage_agent(_client)
13
+ sales_agent = create_sales_agent(_client)
14
+ issues_repairs_agent = create_issues_repairs_agent(_client)
15
  ###
16
 
17
  def create_assistant(client):
 
111
  chat,
112
  chatbot=gr.Chatbot(height=300),
113
  textbox=gr.Textbox(placeholder="Question", container=False, scale=7),
114
+ title="Multi-Agent Demo",
115
+ description="Triage agent, Sales agent, and Issues & Repairs agent",
116
  retry_btn=None,
117
  undo_btn=None,
118
  clear_btn="Clear",
119
+ examples=[["Generate the first 10 Fibbonaci numbers with code.", "sk-<BringYourOwn>"]],
 
120
  cache_examples=False,
121
  additional_inputs=[
122
  gr.Textbox("sk-", label="OpenAI API Key", type = "password"),