From f2b31dc65f2b22e1125ec81e9146a2224a2209db Mon Sep 17 00:00:00 2001 From: waraichinc Date: Thu, 20 Jul 2023 14:54:35 -0400 Subject: [PATCH 1/2] modify readme --- README.md | 14 ++++++++++++++ streamlit.py | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 069adb4..0070a67 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,16 @@ # table-transformer Generates code to transform csv tables as per the template + +Built with [LangChain](https://github.com/hwchase17/langchain), [OpenAI](https://openai.com/) and [Streamlit](https://streamlit.io/). + +# Setup +```shell +# Pass openai_api_key as env varible or as streamlit secret +export OPENAI_API_KEY = 'YOUR_KEY_HERE' +``` +```shell +pip3 install -r requirements.txt +``` +```shell +streamlit run streamlit.py +``` diff --git a/streamlit.py b/streamlit.py index af6e88c..30f4ee4 100644 --- a/streamlit.py +++ b/streamlit.py @@ -3,7 +3,7 @@ from tableTransformer.transformer import Transformer #openai_api_key = os.getenv('OPENAI_API_KEY') -openai_api_key=st.secrets['open_ai_api_key'] +openai_api_key=st.secrets['openai_api_key'] Transformer = Transformer() From 8bb8171711e67fe4214dac84ef1dc0ccda48665d Mon Sep 17 00:00:00 2001 From: waraichinc Date: Thu, 20 Jul 2023 15:01:57 -0400 Subject: [PATCH 2/2] add readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0070a67..0d7703a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Built with [LangChain](https://github.com/hwchase17/langchain), [OpenAI](https:/ # Setup ```shell -# Pass openai_api_key as env varible or as streamlit secret +# Pass openai_api_key as env variable or as streamlit secret export OPENAI_API_KEY = 'YOUR_KEY_HERE' ``` ```shell