bstraehle commited on
Commit
39669cd
1 Parent(s): 1923ab6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ lock = threading.Lock()
7
 
8
  LLM = "gpt-4o"
9
 
10
- def invoke(openai_api_key, task):
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 = "Task", value = "Write a blogpost about the stock price performance of Nvidia in the past month. Today's date is 2024-06-03.")],
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"])