vkshdev's picture
download
raw
530 Bytes
"""
Entry point to run the FastAPI server persistently.
"""
import sys
import os
import uvicorn
# Ensure project root is in PYTHONPATH
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
if __name__ == "__main__":
host = os.environ.get("HOST", "0.0.0.0" if "SPACE_ID" in os.environ else "127.0.0.1")
port = int(os.environ.get("PORT", 7860 if "SPACE_ID" in os.environ else 8000))
uvicorn.run(
"server.app:app",
host=host,
port=port,
log_level="info"
)

Xet Storage Details

Size:
530 Bytes
·
Xet hash:
f1427d5ec4bf4085febff146f60b9874662542510099cdf9ce02109bed3103f6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.