Spaces:
Runtime error
Runtime error
Mayuresh Agashe
commited on
Commit
·
39f1ef8
1
Parent(s):
4ae7799
Update __init__.py
Browse files- backend/__init__.py +4 -4
backend/__init__.py
CHANGED
@@ -4,19 +4,19 @@ from mysql.connector import errorcode
|
|
4 |
from fastapi import FastAPI, status
|
5 |
from fastapi.exceptions import HTTPException
|
6 |
|
7 |
-
from
|
8 |
-
from
|
9 |
|
10 |
from langchain.llms import CTransformers, Clarifai
|
11 |
from langchain.chains import LLMChain
|
12 |
from langchain.prompts import PromptTemplate
|
13 |
|
14 |
-
app = FastAPI(title="
|
15 |
version="V0.0.1",
|
16 |
description="API for automatic code documentation generation!"
|
17 |
)
|
18 |
|
19 |
-
from
|
20 |
|
21 |
try:
|
22 |
dbconnection = DBConnection()
|
|
|
4 |
from fastapi import FastAPI, status
|
5 |
from fastapi.exceptions import HTTPException
|
6 |
|
7 |
+
from backend.utils import DBConnection
|
8 |
+
from backend.core.ConfigEnv import config
|
9 |
|
10 |
from langchain.llms import CTransformers, Clarifai
|
11 |
from langchain.chains import LLMChain
|
12 |
from langchain.prompts import PromptTemplate
|
13 |
|
14 |
+
app = FastAPI(title="Techdocs",
|
15 |
version="V0.0.1",
|
16 |
description="API for automatic code documentation generation!"
|
17 |
)
|
18 |
|
19 |
+
from backend import router
|
20 |
|
21 |
try:
|
22 |
dbconnection = DBConnection()
|