From dae904401f24fc0b1e0cbeac3f6a395c4cc5edbf Mon Sep 17 00:00:00 2001 From: Jerome Hardaway Date: Tue, 12 Nov 2024 20:47:34 -0500 Subject: [PATCH] added new error --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 4b24348..5c3480d 100644 --- a/app.py +++ b/app.py @@ -47,7 +47,7 @@ client = OpenAI(api_key=st.secrets["openai"]["OPENAI_API_KEY"]) # Test the setup -if not openai.api_key: +if not client.api_key: # Changed from openai.api_key to client.api_key raise ValueError("OpenAI API key not found in Streamlit secrets.") def parse_mos_file(file_content: str) -> dict: