katanaml commited on
Commit
5e0419e
1 Parent(s): 336a7ba

Config script addition

Browse files
Dockerfile CHANGED
@@ -17,6 +17,6 @@ WORKDIR $HOME/app
17
 
18
  COPY --chown=user . $HOME/app
19
 
20
- COPY --chown=user config_streamlit/config.toml $HOME/app/.streamlit/config.toml
21
 
22
  CMD ["streamlit", "run", "main.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
17
 
18
  COPY --chown=user . $HOME/app
19
 
20
+ COPY --chown=user config/config.toml $HOME/app/.streamlit/config.toml
21
 
22
  CMD ["streamlit", "run", "main.py", "--server.port=7860", "--server.address=0.0.0.0"]
config.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+
4
+ class Settings():
5
+ sparrow_key = os.environ.get("sparrow_key")
6
+
7
+
8
+ settings = Settings()
{config_streamlit → config}/config.toml RENAMED
File without changes