Spaces:
Runtime error
Runtime error
Config script addition
Browse files- Dockerfile +1 -1
- config.py +8 -0
- {config_streamlit → config}/config.toml +0 -0
Dockerfile
CHANGED
@@ -17,6 +17,6 @@ WORKDIR $HOME/app
|
|
17 |
|
18 |
COPY --chown=user . $HOME/app
|
19 |
|
20 |
-
COPY --chown=user
|
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
|