repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | --- |
| #2 | title: 'Gradio.app' |
| #3 | description: 'Deploy your RAG application to gradio.app platform' |
| #4 | --- |
| #5 | |
| #6 | Embedchain offers a Streamlit template to facilitate the development of RAG chatbot applications in just three easy steps. |
| #7 | |
| #8 | Follow the instructions given below to deploy your first application quickly: |
| #9 | |
| #10 | ## Step-1: Create RAG app |
| #11 | |
| #12 | We provide a command line utility called `ec` in embedchain that inherits the template for `gradio.app` platform and help you deploy the app. Follow the instructions to create a gradio.app app using the template provided: |
| #13 | |
| #14 | ```bash Install embedchain |
| #15 | pip install embedchain |
| #16 | ``` |
| #17 | |
| #18 | ```bash Create application |
| #19 | mkdir my-rag-app |
| #20 | ec create --template=gradio.app |
| #21 | ``` |
| #22 | |
| #23 | This will generate a directory structure like this: |
| #24 | |
| #25 | ```bash |
| #26 | ├── app.py |
| #27 | ├── embedchain.json |
| #28 | └── requirements.txt |
| #29 | ``` |
| #30 | |
| #31 | Feel free to edit the files as required. |
| #32 | - `app.py`: Contains API app code |
| #33 | - `embedchain.json`: Contains embedchain specific configuration for deployment (you don't need to configure this) |
| #34 | - `requirements.txt`: Contains python dependencies for your application |
| #35 | |
| #36 | ## Step-2: Test app locally |
| #37 | |
| #38 | You can run the app locally by simply doing: |
| #39 | |
| #40 | ```bash Run locally |
| #41 | pip install -r requirements.txt |
| #42 | ec dev |
| #43 | ``` |
| #44 | |
| #45 | ## Step-3: Deploy to gradio.app |
| #46 | |
| #47 | ```bash Deploy to gradio.app |
| #48 | ec deploy |
| #49 | ``` |
| #50 | |
| #51 | This will run `gradio deploy` which will prompt you questions and deploy your app directly to huggingface spaces. |
| #52 | |
| #53 | <img src="/images/gradio_app.png" alt="gradio app" /> |
| #54 | |
| #55 | ## Seeking help? |
| #56 | |
| #57 | If you run into issues with deployment, please feel free to reach out to us via any of the following methods: |
| #58 | |
| #59 | <Snippet file="get-help.mdx" /> |
| #60 |