duythduong commited on
Commit
fc647c5
·
1 Parent(s): 2483f04

feat: host BE on HuggingFace Space

Browse files
Files changed (3) hide show
  1. .dockerignore +4 -0
  2. Dockerfile +2 -2
  3. apis/v1/utils/prompts.py +1 -1
.dockerignore ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ env/
2
+ keys/
3
+ __pycache__/
4
+ .github/
Dockerfile CHANGED
@@ -11,7 +11,7 @@ ADD . /app
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  # Make port 80 available to the world outside this container
14
- EXPOSE 8000
15
 
16
  # Run app.py when the container launches
17
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  # Make port 80 available to the world outside this container
14
+ EXPOSE 7860
15
 
16
  # Run app.py when the container launches
17
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
apis/v1/utils/prompts.py CHANGED
@@ -16,7 +16,7 @@ Answer any use questions based solely on the context below:
16
  If the context provide not relevance to the human input, just say that you don't know in language of the human input.
17
  You must answer the question based on language of the human input.
18
  For example, if the question is in English, answer in English or if the question is in Vietnamese, answer in Vietnamese.
19
-
20
 
21
  <context>
22
 
 
16
  If the context provide not relevance to the human input, just say that you don't know in language of the human input.
17
  You must answer the question based on language of the human input.
18
  For example, if the question is in English, answer in English or if the question is in Vietnamese, answer in Vietnamese.
19
+ The answer must be relevant to the context provided and no need for redundant information.
20
 
21
  <context>
22