We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aed506a commit d97ec02Copy full SHA for d97ec02
frontend/streamlit/config.py
@@ -1,13 +1,13 @@
1
"""Configuration module for ClipABit Streamlit frontend."""
2
3
import os
4
-
+import streamlit as st
5
6
class Config:
7
"""Configuration class for environment-based settings."""
8
9
# Environment (defaults to "dev")
10
- ENVIRONMENT = os.getenv("ENVIRONMENT", "dev")
+ ENVIRONMENT = st.secrets.get("ENVIRONMENT", "dev")
11
12
# Validate environment
13
if ENVIRONMENT not in ["dev", "prod"]:
0 commit comments