File size: 960 Bytes
4aa23ee
78c30f0
 
4aa23ee
 
dbc8e33
 
 
 
 
 
 
78c30f0
4aa23ee
78c30f0
dbc8e33
4aa23ee
78c30f0
4aa23ee
 
 
 
dbc8e33
 
4aa23ee
78c30f0
4aa23ee
dbc8e33
 
 
 
78c30f0
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
# =======================================
# ENTRY POINT - HUGGINGFACE SPACES
# Vocal Articulation Assessment v2.0
# =======================================

import os
import logging

# Suppress Starlette warnings
logging.getLogger("starlette").setLevel(logging.ERROR)
logging.getLogger("uvicorn").setLevel(logging.ERROR)

from app.interface import create_interface, initialize_model

if __name__ == '__main__':
    print('Starting Vocal Articulation Assessment System v2.0...')
    
    # Initialize model
    initialize_model()
    
    # Create and launch interface
    demo = create_interface()
    
    # Launch with specific config to avoid Content-Length issues
    demo.launch(
        server_name='0.0.0.0',
        server_port=7860,
        share=False,
        show_error=False,  # Disable detailed error pages that might cause encoding issues
        max_threads=40,     # Limit concurrent requests
        quiet=True          # Reduce logging
    )