# Pharma Voice Orders - Getting Started This document explains how to set up and run the **Pharma Voice Orders** application. --- ## ๐Ÿ“‹ Prerequisites - **Python** 3.12+ - **[uv](https://github.com/astral-sh/uv)** (Modern Python package manager) --- ## ๐Ÿš€ Quick Start ### 1. Install Dependencies ```bash cd pharma-voice-orders uv sync ``` ### 2. Run the Application ```bash uv run start ``` This will launch the Streamlit app at `http://localhost:8501`. --- ## ๐Ÿ“ฆ Available Commands ```bash # Run the app uv run start # Add a new dependency uv add # Sync dependencies (install/update) uv sync # Run streamlit directly (alternative) uv run streamlit run app.py ``` --- ## ๐Ÿ”ง Project Structure ``` pharma-voice-orders/ โ”œโ”€โ”€ app.py # Main Streamlit entry point โ”œโ”€โ”€ main.py # Script wrapper (for `uv run start`) โ”œโ”€โ”€ pyproject.toml # Project config & dependencies โ”œโ”€โ”€ core/ # Preprocessing, ASR, Entity Extraction, Export โ”œโ”€โ”€ simulation/ # Manufacturer DB, Order Queue โ”œโ”€โ”€ evaluation/ # Metrics (WER, Accuracy) โ””โ”€โ”€ data/ # CSV files for medicines & manufacturers ``` --- ## โ“ Why Use `uv run`? Using `uv run` ensures the command executes within the project's **isolated virtual environment** (`.venv`), avoiding conflicts with globally installed packages (like Anaconda). This is the recommended way to run Python projects managed by `uv`. --- ## ๐Ÿงช Testing Your Setup After running `uv run start`: 1. Open `http://localhost:8501` in your browser. 2. Select a distributor from the sidebar. 3. Record or upload an audio file (e.g., "Send 20 strips of Augmentin"). 4. Watch orders get routed to manufacturer boxes. --- *Last Updated: January 2026*