Divyansh Kushwaha
commited on
Commit
·
6a81551
1
Parent(s):
bcb4d47
Updated
Browse files- Dockerfile +3 -2
- app.py +1 -2
Dockerfile
CHANGED
@@ -36,5 +36,6 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
36 |
# Copy application code
|
37 |
COPY --chown=user . /app
|
38 |
|
39 |
-
# Start
|
40 |
-
CMD bash -c "uvicorn api:app --host 0.0.0.0 --port
|
|
|
|
36 |
# Copy application code
|
37 |
COPY --chown=user . /app
|
38 |
|
39 |
+
# Start FastAPI (port 8000) and Streamlit (public port 7860)
|
40 |
+
CMD bash -c "uvicorn api:app --host 0.0.0.0 --port 8000 & streamlit run app.py --server.port 7860 --server.address 0.0.0.0"
|
41 |
+
|
app.py
CHANGED
@@ -3,8 +3,7 @@ import requests
|
|
3 |
|
4 |
# BASE_URL = "https://jatin7237-news-app.hf.space/"
|
5 |
|
6 |
-
BASE_URL="http://0.0.0.0:
|
7 |
-
|
8 |
st.title("Company Sentiment Analysis")
|
9 |
|
10 |
company_name = st.text_input(
|
|
|
3 |
|
4 |
# BASE_URL = "https://jatin7237-news-app.hf.space/"
|
5 |
|
6 |
+
BASE_URL = "http://0.0.0.0:8000"
|
|
|
7 |
st.title("Company Sentiment Analysis")
|
8 |
|
9 |
company_name = st.text_input(
|