Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ lock = threading.Lock()
|
|
7 |
|
8 |
LLM = "gpt-4o"
|
9 |
|
10 |
-
def invoke(openai_api_key,
|
11 |
if not openai_api_key:
|
12 |
raise gr.Error("OpenAI API Key is required.")
|
13 |
|
@@ -24,7 +24,7 @@ gr.close_all()
|
|
24 |
|
25 |
demo = gr.Interface(fn = invoke,
|
26 |
inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1),
|
27 |
-
gr.Textbox(label = "
|
28 |
outputs = [gr.Textbox(label = "Result", value=os.environ["OUTPUT"])],
|
29 |
title = "Multi-Agent AI: Financial Analysis",
|
30 |
description = os.environ["DESCRIPTION"])
|
|
|
7 |
|
8 |
LLM = "gpt-4o"
|
9 |
|
10 |
+
def invoke(openai_api_key, msg):
|
11 |
if not openai_api_key:
|
12 |
raise gr.Error("OpenAI API Key is required.")
|
13 |
|
|
|
24 |
|
25 |
demo = gr.Interface(fn = invoke,
|
26 |
inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1),
|
27 |
+
gr.Textbox(label = "Message", value = "Today is 06/03/2024. Create a plot showing stock gain YTD for NVDA and TLSA. Make sure the code is in markdown code block and save the figure to a file ytd_stock_gains.png.")],
|
28 |
outputs = [gr.Textbox(label = "Result", value=os.environ["OUTPUT"])],
|
29 |
title = "Multi-Agent AI: Financial Analysis",
|
30 |
description = os.environ["DESCRIPTION"])
|