Skip to content

Commit a644077

Browse files
authored
Merge pull request #19 from CADLabs/fix_st_print_return
Attempt at fixing st_print_return args
2 parents ab08bc4 + 15780b8 commit a644077

File tree

1 file changed

+3
-3
lines changed
  • analytics_bot_langchain/agents/agent_toolkits/bigquery

1 file changed

+3
-3
lines changed

analytics_bot_langchain/agents/agent_toolkits/bigquery/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ def query_post_processing(query: str) -> str:
4747
import plotly.graph_objects as go
4848
import pandas as pd
4949
50-
def st_print_return(value):
50+
def st_print_return(*args):
5151
import streamlit as st
52-
st.write(value)
53-
return value
52+
st.write(*args)
53+
return args
5454
""")
5555
query = imports + "\n" + query
5656
query = re.sub(".*client =.*\n?", "client = bigquery_client", query)

0 commit comments

Comments
 (0)