Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,6 +37,8 @@ for message in st.session_state.messages:
|
|
| 37 |
if "sql_query" in message:
|
| 38 |
with st.expander("SQL Query", expanded=False):
|
| 39 |
st.code(message["sql_query"], language="sql")
|
|
|
|
|
|
|
| 40 |
|
| 41 |
input_text = st.chat_input("Chat with your bot here...")
|
| 42 |
|
|
@@ -68,4 +70,5 @@ if input_text:
|
|
| 68 |
"role": "assistant",
|
| 69 |
"reasoning": reasoning,
|
| 70 |
"sql_query": sql_query,
|
|
|
|
| 71 |
})
|
|
|
|
| 37 |
if "sql_query" in message:
|
| 38 |
with st.expander("SQL Query", expanded=False):
|
| 39 |
st.code(message["sql_query"], language="sql")
|
| 40 |
+
if "dataframe" in message:
|
| 41 |
+
st.dataframe(message["dataframe"])
|
| 42 |
|
| 43 |
input_text = st.chat_input("Chat with your bot here...")
|
| 44 |
|
|
|
|
| 70 |
"role": "assistant",
|
| 71 |
"reasoning": reasoning,
|
| 72 |
"sql_query": sql_query,
|
| 73 |
+
"dataframe": df,
|
| 74 |
})
|