Spaces:
Runtime error
title: Contact Center Operations
emoji: ⚡
colorFrom: red
colorTo: green
sdk: docker
pinned: false
license: mit
short_description: Contact Center Operation Insights
Contact Center Operations
A FastAPI application for contact center operation insights and analytics.
System Requirements
This application requires FFmpeg for audio processing capabilities.
Local Development Setup
Follow these steps to run the FastAPI application locally on your machine.
Prerequisites
- Python 3.11
- Git
- FFmpeg (for audio processing)
Installing FFmpeg
On Ubuntu/Debian:
sudo apt-get update
sudo apt-get install ffmpeg
On macOS:
brew install ffmpeg
On Windows: Download from FFmpeg official site and add to PATH.
Installation
Clone the repository
git clone
Create a virtual environment
Option A: Using venv
python3.11 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
Option B: Using conda
conda create -n contact-center python=3.11 conda activate contact-center
Install dependencies
pip install -r requirements.txt
Set up environment variables Create a
.env
file in the backend directory:GEMINI_API_KEY=your_api_key_here
Run the application
python api.py
The FastAPI application will start and be available at http://localhost:8000
.
API Documentation
Once the application is running, you can access:
- Interactive API documentation:
http://localhost:8000/docs
- Alternative API documentation:
http://localhost:8000/redoc
Deactivating the Environment
When you're done working with the application:
For venv:
deactivate
For conda:
conda deactivate
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference