Gradio.app
Deploy your RAG application to gradio.app platform
Embedchain offers a Streamlit template to facilitate the development of RAG chatbot applications in just three easy steps.
Follow the instructions given below to deploy your first application quickly:
Step-1: Create RAG app
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:
pip install embedchain
mkdir my-rag-app
ec create --template=gradio.app
This will generate a directory structure like this:
โโโ app.py
โโโ embedchain.json
โโโ requirements.txt
Feel free to edit the files as required.
app.py
: Contains API app codeembedchain.json
: Contains embedchain specific configuration for deployment (you donโt need to configure this)requirements.txt
: Contains python dependencies for your application
Step-2: Test app locally
You can run the app locally by simply doing:
pip install -r requirements.txt
ec dev
Step-3: Deploy to gradio.app
ec deploy
This will run gradio deploy
which will prompt you questions and deploy your app directly to huggingface spaces.
![gradio app](https://mintlify.s3-us-west-1.amazonaws.com/embedchain-user-dyadav-set-default-app-id/images/gradio_app.png)
Seeking help?
If you run into issues with deployment, please feel free to reach out to us via any of the following methods:
Was this page helpful?