File size: 2,870 Bytes
00470e4
 
 
 
 
 
 
 
 
2d4edef
00470e4
2d4edef
00470e4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
title: EvalBot - Interview Analysis System
emoji: 🤖
colorFrom: blue
colorTo: green
sdk: docker
app_file: app.py
pinned: false
---

# 🎤 EvalBot: Automated Interview Analysis System

Welcome to EvalBot, your AI-powered solution for comprehensive interview analysis!

EvalBot helps assess candidate performance in interviews by analyzing:
- **Voice Metrics:** Speaking rate, filler words, anxiety, confidence, and fluency.
- **Content Analysis:** Key themes, strengths, and areas for development in responses.
- **Speaker Identification:** Differentiating between interviewer and interviewee.
- **Acceptance Probability:** An estimated likelihood of acceptance based on key performance indicators.

## Features:
- **Audio Analysis:** Upload audio files (WAV, MP3, M4A, FLAC) or provide URLs.
- **Detailed PDF Reports:** Get professional, structured reports with key insights and actionable recommendations.
- **API Access:** Integrate EvalBot's analysis capabilities into your own applications.

## How to Use the API:

You can interact with EvalBot's API using the `gradio_client` library in Python.

1.  **Install the client:**
    ```bash
    pip install gradio_client
    ```

2.  **Use the API to analyze audio (accepts multiple URLs):**

    ```python
    from gradio_client import Client, handle_file
    import os

    # Replace with your actual Space URL (e.g., [https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME](https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME))
    SPACE_URL = "[https://huggingface.co/spaces/norhan12/YOUR_NEW_SPACE_NAME](https://huggingface.co/spaces/norhan12/YOUR_NEW_SPACE_NAME)" # REMEMBER TO UPDATE THIS
    
    # Ensure your Hugging Face Access Token is set as an environment variable (for private spaces)
    # HF_ACCESS_TOKEN = os.getenv("HF_TOKEN") 
    
    client = Client(SPACE_URL) # , hf_token=HF_ACCESS_TOKEN # Uncomment if your space is private

    # List of audio URLs to analyze
    audio_interview_urls = [
        "[https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3](https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3)",
        "[https://www.soundhelix.com/examples/mp3/SoundHelix-Song-2.mp3](https://www.soundhelix.com/examples/mp3/SoundHelix-Song-2.mp3)",
        # Add more URLs as needed
    ]

    try:
        result = client.predict(
            file=handle_file(audio_interview_urls),
            api_name="/analyze_multiple_audios" # Ensure this matches your function name in app.py
        )

        print("Combined Analysis Summary:", result[0])
        print("Detailed Analysis (JSON Array):", result[1])
        print("Downloadable PDF Paths:", result[2])

    except Exception as e:
        print(f"An error occurred while calling the API: {e}")
    ```

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference