waelstaha commited on
Commit
09a1315
·
1 Parent(s): b2feba5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -82,9 +82,9 @@ def plot_chart():
82
  tool=PythonREPLTool(),
83
  verbose=True
84
  )
85
-
86
  # Add Open AI call to format outcome in a table
87
- return agent_executor.run("Plot these results:{json}",json)
88
 
89
 
90
  # sql_agent = get_sql_agent()
 
82
  tool=PythonREPLTool(),
83
  verbose=True
84
  )
85
+ question = "Plot these results: " + json
86
  # Add Open AI call to format outcome in a table
87
+ return agent_executor.run(question)
88
 
89
 
90
  # sql_agent = get_sql_agent()