Spaces:
Running
Running
Update app.py
Browse files
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(
|
13 |
-
sales_agent = create_sales_agent(
|
14 |
-
issues_repairs_agent = create_issues_repairs_agent(
|
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-
|
115 |
-
description="
|
116 |
retry_btn=None,
|
117 |
undo_btn=None,
|
118 |
clear_btn="Clear",
|
119 |
-
examples=[["
|
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"),
|