File size: 284 Bytes
ecde958
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""
HuggingFace Spaces entry point for VoiceAPI
"""
import os
import sys
sys.path.insert(0, os.path.dirname(__file__))

from src.api import app

if __name__ == "__main__":
    import uvicorn
    port = int(os.environ.get("PORT", 7860))
    uvicorn.run(app, host="0.0.0.0", port=port)