Spaces:
Sleeping
Sleeping
Pharma Voice Orders - Getting Started
This document explains how to set up and run the Pharma Voice Orders application.
π Prerequisites
- Python 3.12+
- uv (Modern Python package manager)
π Quick Start
1. Install Dependencies
cd pharma-voice-orders
uv sync
2. Run the Application
uv run start
This will launch the Streamlit app at http://localhost:8501.
π¦ Available Commands
# Run the app
uv run start
# Add a new dependency
uv add <package-name>
# 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:
- Open
http://localhost:8501in your browser. - Select a distributor from the sidebar.
- Record or upload an audio file (e.g., "Send 20 strips of Augmentin").
- Watch orders get routed to manufacturer boxes.
Last Updated: January 2026