Skip to content

Commit

Permalink
added new error
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromehardaway committed Nov 13, 2024
1 parent 2a0d80a commit dae9044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dae9044

Please sign in to comment.