bstraehle commited on
Commit
51d9ec8
1 Parent(s): 1f52073

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,7 +1,7 @@
1
  # TODO:
2
  #
3
- # 1. Gradio session / multi-user thread
4
- # 2. Function calling - https://platform.openai.com/docs/assistants/tools/function-calling
5
 
6
  # Reference:
7
  #
@@ -130,7 +130,6 @@ def get_run_steps(client, thread, run):
130
  def execute_tool_call(tool_call):
131
  name = tool_call.function.name
132
  args = json.loads(tool_call.function.arguments)
133
- print(f"Executing tool: {tools[name]}")
134
 
135
  return tools[name](**args)
136
 
@@ -312,7 +311,7 @@ gr.ChatInterface(
312
  ["Fix: x = [5, 2, 1, 3, 4]; print(x.sort())"],
313
  ["Optimize: x = []; for i in range(0, 10000): x.append(i)"],
314
  ["Execute: First 25 Fibbonaci numbers"],
315
- ["Create a plot showing stock gain YTD for NVDA, MSFT, AAPL, and GOOG, x-axis is 'Day' and y-axis is 'YTD Gain %'."]
316
  ],
317
  cache_examples=False,
318
  ).launch()
 
1
  # TODO:
2
  #
3
+ # 1. Function calling - https://platform.openai.com/docs/assistants/tools/function-calling
4
+ # 2. Gradio session / multi-user thread
5
 
6
  # Reference:
7
  #
 
130
  def execute_tool_call(tool_call):
131
  name = tool_call.function.name
132
  args = json.loads(tool_call.function.arguments)
 
133
 
134
  return tools[name](**args)
135
 
 
311
  ["Fix: x = [5, 2, 1, 3, 4]; print(x.sort())"],
312
  ["Optimize: x = []; for i in range(0, 10000): x.append(i)"],
313
  ["Execute: First 25 Fibbonaci numbers"],
314
+ ["Create a plot showing stock gain YTD for NVDA, MSFT, AAPL, and GOOG, x-axis is 'Day' and y-axis is 'YTD Gain %'"]
315
  ],
316
  cache_examples=False,
317
  ).launch()