zemax-studio / app.py
phamminhtien07-sudo
deploy: initial clean space build with version upgrades and thread optimizations
319cf9c
Raw
History Blame Contribute Delete
439 Bytes
import os
import sys
# Ensure server binds to all interfaces when running on Hugging Face Spaces
if "GRADIO_SERVER_NAME" not in os.environ:
os.environ["GRADIO_SERVER_NAME"] = "0.0.0.0"
# Add directories to system path
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "src")))
from apps.gradio_main import main
if __name__ == "__main__":
main()