Spaces:
Running
Running
phamminhtien07-sudo
deploy: initial clean space build with version upgrades and thread optimizations
319cf9c | 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() | |