Ajit Panday commited on
Commit
1b8e418
Β·
1 Parent(s): 685b2e5

Update README with Hugging Face Space configuration

Browse files
Files changed (1) hide show
  1. README.md +60 -56
README.md CHANGED
@@ -1,67 +1,71 @@
1
- # vBot - Voice Call Analysis API
2
-
3
- A FastAPI-based service for processing and analyzing voice call recordings.
4
-
5
- ## API Endpoints
6
-
7
- ### Process Call Recording
8
- ```http
9
- POST /api/v1/process-call
10
- ```
11
-
12
- #### Headers
13
- - `Authorization`: Bearer token for authentication
14
-
15
- #### Form Data
16
- - `file`: The audio file to process (supported formats: WAV, MP3)
17
-
18
- #### Response
19
- ```json
20
- {
21
- "id": "unique_id",
22
- "text": "Transcribed text from the call",
23
- "sentiment": "positive/negative/neutral",
24
- "keywords": ["array", "of", "key", "terms"],
25
- "timestamp": "2024-04-05T11:50:00Z"
26
- }
27
- ```
28
-
29
- ## Setup Instructions
30
-
31
- 1. Clone the repository:
 
 
32
  ```bash
33
- git clone https://huggingface.co/spaces/iajitpanday/vBot
 
 
 
34
  ```
35
 
36
- 2. Create a virtual environment:
37
- ```bash
38
- python -m venv venv
39
- source venv/bin/activate # On Windows: venv\Scripts\activate
40
- ```
41
 
42
- 3. Install dependencies:
43
- ```bash
44
- pip install -r requirements.txt
45
- ```
46
 
47
- 4. Set up environment variables in `.env`:
48
- ```
49
- DATABASE_URL=your_database_url
50
- JWT_SECRET=your_jwt_secret
51
- HUGGINGFACE_API_KEY=your_api_key
52
- ```
53
 
54
- 5. Run the application:
55
- ```bash
56
- uvicorn main:app --host 0.0.0.0 --port 7860
57
- ```
 
 
 
 
58
 
59
- ## Environment Variables
 
 
60
 
61
- - `DATABASE_URL`: URL for the database connection
62
- - `JWT_SECRET`: Secret key for JWT token generation
63
- - `HUGGINGFACE_API_KEY`: API key for Hugging Face services
64
 
65
  ## License
66
 
67
- MIT License
 
 
 
1
+ ---
2
+ title: vBot - AI-Powered Call Analysis
3
+ emoji: πŸ“ž
4
+ colorFrom: blue
5
+ colorTo: indigo
6
+ sdk: gradio
7
+ sdk_version: "4.19.2"
8
+ app_file: main.py
9
+ pinned: false
10
+ ---
11
+
12
+ # vBot - AI-Powered Call Analysis System
13
+
14
+ vBot is a multi-tenant system that provides AI-powered call analysis for Asterisk PBX systems. It processes phone conversations to provide transcription, summarization, and sentiment analysis using Hugging Face models.
15
+
16
+ ## Features
17
+
18
+ - 🎯 Multi-tenant support with secure API keys
19
+ - πŸŽ™οΈ Real-time call processing
20
+ - πŸ“ Speech-to-text transcription
21
+ - πŸ“‹ Call summarization
22
+ - 😊 Sentiment analysis
23
+ - πŸ”’ Secure admin dashboard
24
+ - πŸ”Œ RESTful API
25
+
26
+ ## Quick Start
27
+
28
+ 1. **Deploy to Hugging Face Spaces**
29
+ - Click "Use this Space"
30
+ - Configure environment variables
31
+ - Deploy
32
+
33
+ 2. **Configure Environment Variables**
34
  ```bash
35
+ JWT_SECRET=your-secure-secret-key
36
+ ADMIN_USERNAME=your-admin-username
37
+ ADMIN_PASSWORD=your-secure-password
38
+ DATABASE_URL=mysql+pymysql://username:password@host:port/database
39
  ```
40
 
41
+ 3. **Integration with Asterisk**
42
+ - Get your API key from the admin dashboard
43
+ - Configure your Asterisk dialplan
44
+ - Start processing calls
 
45
 
46
+ ## Documentation
 
 
 
47
 
48
+ For detailed documentation, please refer to our [User Manual](USER_MANUAL.md).
 
 
 
 
 
49
 
50
+ ## API Endpoints
51
+
52
+ ### Admin Endpoints
53
+ - `POST /api/v1/token` - Get admin token
54
+ - `POST /api/v1/customers/` - Create customer
55
+ - `GET /api/v1/customers/` - List customers
56
+ - `GET /api/v1/customers/{id}` - Get customer
57
+ - `DELETE /api/v1/customers/{id}` - Delete customer
58
 
59
+ ### Customer Endpoints
60
+ - `POST /api/v1/process-call` - Process call
61
+ - `GET /api/v1/calls/{id}` - List calls
62
 
63
+ ## Support
64
+
65
+ For support and troubleshooting, please refer to the [Troubleshooting Guide](USER_MANUAL.md#troubleshooting) in our user manual.
66
 
67
  ## License
68
 
69
+ MIT License
70
+
71
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference