Python version: 3.11.5
Streamlit version: 1.39.0
I’m running this simple code:
st.set_page_config(page_title=“AI APP TO CHAT WITH SQL DB”)
st.header=“ASK ANYTHING ABOUT YOUR DB”
query=st.text_input(“ask question here”)
st.write(“nothing developed now.”)
I’m running it locally from Jupyter notebook with ’ !streamlit run file.py’
it opens this in browser:
{“cells”:[{“cell_type”:“code”,“execution_count”:24,“id”:“5fe872da”,“metadata”:{“scrolled”:true},“outputs”:,“source”:[“import streamlit as st\n”,“from langchain.agents import create_sql_agent\n”,“from langchain.agents.agent_toolkits import SQLDatabaseToolkit\n”,“from langchain.agents.agent_types import AgentType\n”,“from langchain.chat_models import ChatOpenAI\n”,“from langchain.sql_database import SQLDatabase\n”,“from langchain.prompts.chat import ChatPromptTemplate\n”,“from sqlalchemy import create_engine\n”,“\n”,“st.set_page_config(page_title="AI APP TO CHAT WITH SQL DB")\n”,“st.header="ASK ANYTHING ABOUT YOUR DB"\n”,“query=st.text_input("ask question here")\n”,“st.write("nothing developed now.")”]},{“cell_type”:“code”,“execution_count”:2,“id”:“7a5832c5”,“metadata”:{},“outputs”:,“source”:}],“metadata”:{“kernelspec”:{“display_name”:“Python 3 (ipykernel)”,“language”:“python”,“name”:“python3”},“language_info”:{“codemirror_mode”:{“name”:“ipython”,“version”:3},“file_extension”:“.py”,“mimetype”:“text/x-python”,“name”:“python”,“nbconvert_exporter”:“python”,“pygments_lexer”:“ipython3”,“version”:“3.11.5”}},“nbformat”:4,“nbformat_minor”:5}