[Refactor] Remove usage of 'Pipeline' in favor of 'App' (#1246)

This commit is contained in:
Deshraj Yadav
2024-02-06 19:00:33 -08:00
committed by GitHub
parent 4afef04f26
commit 9fa368b114
7 changed files with 10 additions and 10 deletions

View File

@@ -2,12 +2,12 @@ from dotenv import load_dotenv
from fastapi import FastAPI, responses
from pydantic import BaseModel
from embedchain import Pipeline
from embedchain import App
load_dotenv(".env")
app = FastAPI(title="Embedchain FastAPI App")
embedchain_app = Pipeline()
embedchain_app = App()
class SourceModel(BaseModel):

View File

@@ -2,7 +2,7 @@ from dotenv import load_dotenv
from fastapi import Body, FastAPI, responses
from modal import Image, Secret, Stub, asgi_app
from embedchain import Pipeline
from embedchain import App
load_dotenv(".env")
@@ -18,7 +18,7 @@ stub = Stub(
)
web_app = FastAPI()
embedchain_app = Pipeline(name="embedchain-modal-app")
embedchain_app = App(name="embedchain-modal-app")
@web_app.post("/add")

View File

@@ -1,10 +1,10 @@
from fastapi import FastAPI, responses
from pydantic import BaseModel
from embedchain import Pipeline
from embedchain import App
app = FastAPI(title="Embedchain FastAPI App")
embedchain_app = Pipeline()
embedchain_app = App()
class SourceModel(BaseModel):