upload
Browse files- Dockerfile +2 -2
- backend.py +1 -1
Dockerfile
CHANGED
@@ -30,8 +30,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
30 |
COPY . /app
|
31 |
|
32 |
# Expose port 7860 for the streamlit app to listen on
|
33 |
-
EXPOSE 7860
|
34 |
EXPOSE 5000
|
|
|
35 |
|
36 |
# open the grobid server
|
37 |
RUN apt-get update && \
|
@@ -40,7 +40,7 @@ RUN chmod +x serve_grobid.sh
|
|
40 |
RUN ./serve_grobid.sh
|
41 |
|
42 |
# open the backend server
|
43 |
-
RUN python backend.py
|
44 |
|
45 |
# Run the command to start the streamlit app
|
46 |
CMD ["streamlit", "run", "frontend.py", "--server.address", "0.0.0.0", "--server.port", "7860", "--server.enableCORS", "true", "--server.enableXsrfProtection", "false"]
|
|
|
30 |
COPY . /app
|
31 |
|
32 |
# Expose port 7860 for the streamlit app to listen on
|
|
|
33 |
EXPOSE 5000
|
34 |
+
EXPOSE 7860
|
35 |
|
36 |
# open the grobid server
|
37 |
RUN apt-get update && \
|
|
|
40 |
RUN ./serve_grobid.sh
|
41 |
|
42 |
# open the backend server
|
43 |
+
RUN python backend.py
|
44 |
|
45 |
# Run the command to start the streamlit app
|
46 |
CMD ["streamlit", "run", "frontend.py", "--server.address", "0.0.0.0", "--server.port", "7860", "--server.enableCORS", "true", "--server.enableXsrfProtection", "false"]
|
backend.py
CHANGED
@@ -78,4 +78,4 @@ def query():
|
|
78 |
|
79 |
|
80 |
if __name__ == '__main__':
|
81 |
-
app.run(host='
|
|
|
78 |
|
79 |
|
80 |
if __name__ == '__main__':
|
81 |
+
app.run(host='localhost', port=5000, debug=False)
|