smartleaf-api / app.py
yasyn14's picture
getting strted
7a11d7a
raw
history blame contribute delete
285 Bytes
# Alternative entry point for Hugging Face Spaces
# This file can be used if main.py doesn't work as expected
from main import app
if __name__ == "__main__":
import uvicorn
import os
port = int(os.getenv("PORT", 7860))
uvicorn.run(app, host="0.0.0.0", port=port)