Hemanth Sai Garladinne commited on
Commit
0514855
1 Parent(s): 818c7a3

update docker file (#15)

Browse files

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* update docker file

* Backend deployed

Dockerfile ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10.9
2
+
3
+ COPY ./TechdocsAPI .
4
+
5
+ WORKDIR /
6
+
7
+ RUN pip install --no-cache-dir --upgrade -r /requirements.txt
8
+
9
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
TechdocsAPI/Dockerfile DELETED
@@ -1,11 +0,0 @@
1
- FROM python:3.11
2
-
3
- WORKDIR /backend
4
-
5
- COPY ./requirements.txt /backend/requirements.txt
6
-
7
- RUN pip install --no-cache-dir --upgrade -r /backend/requirements.txt
8
-
9
- COPY . .
10
-
11
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
 
 
 
 
 
 
TechdocsAPI/backend/services/db/utils/DBQueries.py CHANGED
@@ -1,8 +1,3 @@
1
- # fix ObjectId & FastApi conflict
2
- import pydantic
3
- from bson.objectid import ObjectId
4
- pydantic.json.ENCODERS_BY_TYPE[ObjectId]=str
5
-
6
  from typing import Union, Tuple, List
7
 
8
  from backend.utils import DBConnection
 
 
 
 
 
 
1
  from typing import Union, Tuple, List
2
 
3
  from backend.utils import DBConnection
TechdocsAPI/requirements.txt CHANGED
@@ -8,3 +8,4 @@ mysql-connector-python
8
  pydantic[email]
9
  langchain
10
  clarifai
 
 
8
  pydantic[email]
9
  langchain
10
  clarifai
11
+ Pillow
techdocs/utils/functools.py CHANGED
@@ -1,7 +1,7 @@
1
  import json
2
  import requests
3
 
4
- BASE_URL = "http://localhost:8000"
5
 
6
 
7
 
 
1
  import json
2
  import requests
3
 
4
+ BASE_URL = "https://hemanthsai7-techdocsapi.hf.space"
5
 
6
 
7