From d95726a2c0ff5b07372798d2c80ae3f5f90b9540 Mon Sep 17 00:00:00 2001 From: loonyx8 <66733801+loonyx8@users.noreply.github.com> Date: Sun, 21 Jan 2024 16:35:09 +0800 Subject: [PATCH] Update streamlit_app.py --- streamlit_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streamlit_app.py b/streamlit_app.py index ea8f41cb2420..f959667e719a 100644 --- a/streamlit_app.py +++ b/streamlit_app.py @@ -12,7 +12,7 @@ from chatgpt_values import extract_values # REMOVE THIS BEFORE COPYING TO GITHUB! -API_KEY = os.environ['API_KEY'] +API_KEY = os.environ['OPENAI_KEY'] # it remembers the old API key but can't detect the new OPENAI secret :( client = OpenAI(api_key=API_KEY) ocr_model = PaddleOCR(use_angle_cls=True, lang='en')