Spaces:
Sleeping
Sleeping
Alejadro Sanchez-Giraldo
commited on
Commit
•
185801a
1
Parent(s):
8451c82
Improve Readme
Browse files
README.md
CHANGED
@@ -43,7 +43,7 @@ docker run -p 5001:5001 -e LAUNCHDARKLY_SDK_KEY="<LAUNCHDARKLY_SDK_KEY>" myapi
|
|
43 |
python3 -m venv myenv
|
44 |
source myenv/bin/activate
|
45 |
|
46 |
-
LAUNCHDARKLY_SDK_KEY
|
47 |
|
48 |
# Build your Docker image
|
49 |
|
@@ -51,7 +51,7 @@ docker build -t morsisdivine/sentiment .
|
|
51 |
|
52 |
# Run your Docker container, mapping port 5001 of the container to port 5001 on your host
|
53 |
|
54 |
-
docker run -p 5001:5001 -e LAUNCHDARKLY_SDK_KEY
|
55 |
|
56 |
### UI
|
57 |
|
@@ -59,4 +59,4 @@ python3 -m venv myenv
|
|
59 |
source myenv/bin/activate
|
60 |
pip3 install -r requirements.txt
|
61 |
|
62 |
-
LAUNCHDARKLY_SDK_KEY
|
|
|
43 |
python3 -m venv myenv
|
44 |
source myenv/bin/activate
|
45 |
|
46 |
+
LAUNCHDARKLY_SDK_KEY=$LAUNCHDARKLY_SDK_KEY gunicorn -w 4 -b 0.0.0.0:5001 api:app
|
47 |
|
48 |
# Build your Docker image
|
49 |
|
|
|
51 |
|
52 |
# Run your Docker container, mapping port 5001 of the container to port 5001 on your host
|
53 |
|
54 |
+
docker run -p 5001:5001 -e LAUNCHDARKLY_SDK_KEY=$LAUNCHDARKLY_SDK_KEY morsisdivine/sentiment
|
55 |
|
56 |
### UI
|
57 |
|
|
|
59 |
source myenv/bin/activate
|
60 |
pip3 install -r requirements.txt
|
61 |
|
62 |
+
LAUNCHDARKLY_SDK_KEY=$LAUNCHDARKLY_SDK_KEY streamlit run app.py
|