OCx25 / app.py
mshuaibi's picture
init ocx25
5ae7694
Raw
History Blame Contribute Delete
667 Bytes
"""Hugging Face Spaces entry point for the Flask dashboard."""
import os
import sys
if __name__ == "__main__":
# Hugging Face Spaces exposes applications on port 7860.
port = os.environ.setdefault("PORT", "7860")
os.execv(
sys.executable,
[
sys.executable,
"-m",
"gunicorn",
"--bind",
f"0.0.0.0:{port}",
"--workers",
"1",
"--threads",
"4",
"--timeout",
"120",
"app:app",
],
)
from OCx25_dashboard import create_filter_dashboard
app = create_filter_dashboard(start_server=False)