[Refactor] Converge Pipeline and App classes (#1021)
Co-authored-by: Deven Patel <deven298@yahoo.com>
This commit is contained in:
@@ -2,7 +2,7 @@ import os
|
||||
|
||||
import chainlit as cl
|
||||
|
||||
from embedchain import Pipeline as App
|
||||
from embedchain import App
|
||||
|
||||
os.environ["OPENAI_API_KEY"] = "sk-xxx"
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import threading
|
||||
|
||||
import streamlit as st
|
||||
|
||||
from embedchain import Pipeline as App
|
||||
from embedchain import App
|
||||
from embedchain.config import BaseLlmConfig
|
||||
from embedchain.helpers.callbacks import (StreamingStdOutCallbackHandlerYield,
|
||||
generate)
|
||||
|
||||
@@ -2,7 +2,7 @@ import os
|
||||
|
||||
import streamlit as st
|
||||
|
||||
from embedchain import Pipeline as App
|
||||
from embedchain import App
|
||||
|
||||
|
||||
@st.cache_resource
|
||||
|
||||
@@ -9,7 +9,7 @@ from services import get_app, get_apps, remove_app, save_app
|
||||
from sqlalchemy.orm import Session
|
||||
from utils import generate_error_message_for_api_keys
|
||||
|
||||
from embedchain import Pipeline as App
|
||||
from embedchain import App
|
||||
from embedchain.client import Client
|
||||
|
||||
Base.metadata.create_all(bind=engine)
|
||||
|
||||
@@ -6,7 +6,7 @@ from io import StringIO
|
||||
import requests
|
||||
import streamlit as st
|
||||
|
||||
from embedchain import Pipeline as App
|
||||
from embedchain import App
|
||||
from embedchain.config import BaseLlmConfig
|
||||
from embedchain.helpers.callbacks import (StreamingStdOutCallbackHandlerYield,
|
||||
generate)
|
||||
|
||||
@@ -2,7 +2,7 @@ import queue
|
||||
|
||||
import streamlit as st
|
||||
|
||||
from embedchain import Pipeline as App
|
||||
from embedchain import App
|
||||
from embedchain.config import BaseLlmConfig
|
||||
from embedchain.helpers.callbacks import (StreamingStdOutCallbackHandlerYield,
|
||||
generate)
|
||||
@@ -35,7 +35,7 @@ with st.expander(":grey[Want to create your own Unacademy UPSC AI?]"):
|
||||
```
|
||||
|
||||
```python
|
||||
from embedchain import Pipeline as App
|
||||
from embedchain import App
|
||||
unacademy_ai_app = App()
|
||||
unacademy_ai_app.add(
|
||||
"https://unacademy.com/content/upsc/study-material/plan-policy/atma-nirbhar-bharat-3-0/",
|
||||
|
||||
Reference in New Issue
Block a user