Skip to content

Commit

Permalink
make the code more focused on streamlit code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromehardaway committed Nov 2, 2024
1 parent 1a373da commit 6c426b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@
load_dotenv()

# Configure OpenAI
openai.api_key = os.getenv("OPENAI_API_KEY")
openai.api_key = st.secrets["OPENAI_API_KEY"]
if not openai.api_key:
raise ValueError("OpenAI API key not found in .env file")
raise ValueError("OpenAI API key not found in Streamlit secrets")

def parse_mos_file(file_content: str) -> dict:
"""
Expand Down

0 comments on commit 6c426b4

Please sign in to comment.