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: