ujalaarshad17 commited on
Commit
b400384
·
1 Parent(s): 2930679

Added application files

Browse files
Files changed (3) hide show
  1. DockerFile +1 -1
  2. app.py → main.py +0 -3
  3. requirements.txt +1 -0
DockerFile CHANGED
@@ -15,4 +15,4 @@ COPY --chown=user . /app
15
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
16
 
17
  # Run the application
18
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
15
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
16
 
17
  # Run the application
18
+ CMD ["gunicorn", "-b", "0.0.0.0:7680","main:app"]
app.py → main.py RENAMED
@@ -53,6 +53,3 @@ def chat():
53
  print(e)
54
  return "Some error occurred !!"
55
 
56
-
57
- if __name__ == "__main__":
58
- app.run()
 
53
  print(e)
54
  return "Some error occurred !!"
55
 
 
 
 
requirements.txt CHANGED
@@ -1,3 +1,4 @@
 
1
  sentence-transformers==2.2.2
2
  langchain
3
  flask
 
1
+ gunicorn
2
  sentence-transformers==2.2.2
3
  langchain
4
  flask