{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "provenance": [], "gpuType": "T4" }, "kernelspec": { "name": "python3", "display_name": "Python 3" }, "language_info": { "name": "python" } }, "cells": [ { "cell_type": "markdown", "source": [ "# 🚀 Annotation Assistant - Colab Launcher\n", "**Instructions:**\n", "1. Upload all project files (`app.py`, `utils.py`, `requirements.txt`) to the details file area on the left.\n", "2. Add your Ngrok Authtoken below.\n", "3. Run all cells." ], "metadata": { "id": "intro_md" } }, { "cell_type": "code", "source": [ "# 1. Install Dependencies\n", "!pip install -r requirements.txt" ], "metadata": { "id": "install_deps" }, "execution_count": null, "outputs": [] }, { "cell_type": "code", "source": [ "# 2. Authenticate ngrok\n", "# REPLACE 'YOUR_TOKEN' WITH YOUR ACTUAL TOKEN\n", "from pyngrok import ngrok\n", "ngrok.set_auth_token(\"YOUR_NGROK_AUTHTOKEN_HERE\")" ], "metadata": { "id": "auth_ngrok" }, "execution_count": null, "outputs": [] }, { "cell_type": "code", "source": [ "# 3. Run the App\n", "import os\n", "import time\n", "from pyngrok import ngrok\n", "\n", "# Kill previous tunnels\n", "ngrok.kill()\n", "\n", "# Run Streamlit in background\n", "get_ipython().system_raw('streamlit run app.py &')\n", "\n", "# Open Tunnel\n", "time.sleep(5) # Wait for start\n", "public_url = ngrok.connect(8501).public_url\n", "print(f\"🚀 Application Live at: {public_url}\")" ], "metadata": { "id": "run_app" }, "execution_count": null, "outputs": [] } ] }