| """ | |
| HF Space entry point for Doc2GL. | |
| Starts the HTTP server and launches the Gradio interface. | |
| """ | |
| import os | |
| # Ensure we're in the right directory | |
| _SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) | |
| os.chdir(_SCRIPT_DIR) | |
| from demo_user import start_http_server, gradio_interface | |
| start_http_server(8000) | |
| gradio_interface() | |