aibridze/document_intelligence
0
1# Trident Document Intelligence — Deployment Guide2 3## 1. Deploy the Backend (Render)4 51. Push this code to a **GitHub repository**.62. Go to [dashboard.render.com](https://dashboard.render.com/) → **New +** → **Web Service**.73. Connect your GitHub repo.84. Use these settings:9 * **Name:** `trident-backend`10 * **Runtime:** Python 311 * **Build Command:** `apt-get update && apt-get install -y poppler-utils && pip install -r requirements.txt`12 * **Start Command:** `uvicorn app.main:app --host 0.0.0.0 --port $PORT`135. Scroll down to **Environment Variables** and add:14 * `GOOGLE_API_KEY`: *(Paste your Gemini API key)*15 * `PYTHON_VERSION`: `3.11.0`166. Click **Deploy Web Service**.17 * *Note: It will take a few minutes. Once done, copy the URL (e.g., `https://trident-backend.onrender.com`).*18 19---20 21## 2. Deploy the Frontend (Streamlit Cloud)22 231. Go to [share.streamlit.io](https://share.streamlit.io/) → **New App**.242. Select your GitHub repo.253. **Main file path:** `streamlit_app.py`264. Click **Advanced Settings** → **Secrets** and add:27 ```toml28 API_URL = "https://your-render-backend-url.onrender.com/api/v1"29 ```30 *(Replace with your actual Render URL from Step 1)*315. Click **Deploy**.32 33---34 35## 🎉 Done!36Your app will be live.37- **Render** runs the FastAPI backend (and installs `poppler` for PDF processing).38- **Streamlit Cloud** runs the UI (and installs `poppler` via the included `packages.txt`).39 