yiyixin commited on
Commit
0ee9d00
1 Parent(s): 8b5acff
Files changed (4) hide show
  1. Dockerfile +0 -2
  2. backend.py +1 -1
  3. frontend.py +1 -1
  4. run.sh +2 -0
Dockerfile CHANGED
@@ -40,8 +40,6 @@ 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"]
47
 
 
40
  RUN ./serve_grobid.sh
41
 
42
  # open the backend server
 
 
43
  # Run the command to start the streamlit app
44
  CMD ["streamlit", "run", "frontend.py", "--server.address", "0.0.0.0", "--server.port", "7860", "--server.enableCORS", "true", "--server.enableXsrfProtection", "false"]
45
 
backend.py CHANGED
@@ -78,4 +78,4 @@ def query():
78
 
79
 
80
  if __name__ == '__main__':
81
- app.run(host='0.0.0.0', port=8080, debug=False)
 
78
 
79
 
80
  if __name__ == '__main__':
81
+ app.run(host='0.0.0.0', port=5000, debug=False)
frontend.py CHANGED
@@ -29,7 +29,7 @@ def get_text():
29
 
30
  st.header("ChatPaper - Demo")
31
 
32
- API_URL = "http://10.19.90.124:8080/query/"
33
  header = {"api_key": ""}
34
 
35
  if 'generated' not in st.session_state:
 
29
 
30
  st.header("ChatPaper - Demo")
31
 
32
+ API_URL = "http://localhost:5000/query/"
33
  header = {"api_key": ""}
34
 
35
  if 'generated' not in st.session_state:
run.sh ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ python backend.py &
2
+ streamlit run frontend.py ---server.address 0.0.0.0 --server.port 7860 --server.enableCORS true --server.enableXsrfProtection false