Daniel Marques commited on
Commit
44398ac
1 Parent(s): aa80328

fix: add websocket in handlerToken

Browse files
Files changed (4) hide show
  1. .dockerignore +1 -1
  2. Dockerfile +2 -0
  3. main.py +2 -0
  4. requirements.txt +0 -1
.dockerignore CHANGED
@@ -5,5 +5,5 @@
5
  !requirements.txt
6
  !SOURCE_DOCUMENTS
7
  !static
8
- *.sh
9
 
 
5
  !requirements.txt
6
  !SOURCE_DOCUMENTS
7
  !static
8
+ !*.sh
9
 
Dockerfile CHANGED
@@ -32,4 +32,6 @@ WORKDIR $HOME/app
32
 
33
  COPY --chown=user . $HOME/app
34
 
 
 
35
  CMD ["sh", "run.sh"]
 
32
 
33
  COPY --chown=user . $HOME/app
34
 
35
+ RUN chmod +x ./run.sh
36
+
37
  CMD ["sh", "run.sh"]
main.py CHANGED
@@ -97,6 +97,8 @@ QA = RetrievalQA.from_chain_type(
97
  },
98
  )
99
 
 
 
100
  app = FastAPI(title="homepage-app")
101
  api_app = FastAPI(title="api app")
102
 
 
97
  },
98
  )
99
 
100
+
101
+
102
  app = FastAPI(title="homepage-app")
103
  api_app = FastAPI(title="api app")
104
 
requirements.txt CHANGED
@@ -29,7 +29,6 @@ uvicorn
29
  fastapi
30
  websockets
31
  pydantic
32
- varstate
33
 
34
  # Streamlit related
35
  streamlit
 
29
  fastapi
30
  websockets
31
  pydantic
 
32
 
33
  # Streamlit related
34
  streamlit