Using streamlit.io
Step 1: Create a new RAG app
Create a new RAG app using the following command:embedchain.json
file in your app directory. Add a name
key into the embedchain.json
file. This will be the “repo-name” of your app in huggingface spaces.
embedchain.json
Step-2: Test app locally
You can run the app locally by simply doing:Run locally
Step-3: Deploy to huggingface spaces
Deploy to huggingface spaces
https://huggingface.co/spaces/<your-username>/my-rag-app
. This will get prompted in the terminal once the app is deployed.
Using gradio.app
Similar to streamlit.io, you can deploy your app to gradio.app in just three steps.Step 1: Create a new RAG app
Create a new RAG app using the following command:embedchain.json
file in your app directory. Add a name
key into the embedchain.json
file. This will be the “repo-name” of your app in huggingface spaces.
embedchain.json
Step-2: Test app locally
You can run the app locally by simply doing:Run locally
Step-3: Deploy to huggingface spaces
Deploy to huggingface spaces
https://huggingface.co/spaces/<your-username>/my-rag-app
. This will get prompted in the terminal once the app is deployed.