Spaces:
Sleeping
Sleeping
File size: 368 Bytes
922edf7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# Hugging Face Spaces entry point
import os
from api import app
# This file is used by Hugging Face Spaces to start the application
if __name__ == "__main__":
import uvicorn
port = int(os.environ.get("PORT", 7860)) # HF Spaces default port
uvicorn.run(
app,
host="0.0.0.0",
port=port,
log_level="info"
)
|