Spaces:
Running
Running
File size: 439 Bytes
319cf9c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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()
|