""" HuggingFace Spaces entry point for DOLPHIN PDF Document AI """ import os import sys # Add the current directory to Python path for imports sys.path.append(os.path.dirname(os.path.abspath(__file__))) # Import and run the Gradio app from gradio_pdf_app import demo if __name__ == "__main__": # Launch the app for HuggingFace Spaces demo.launch( server_name="0.0.0.0", server_port=7860, share=False, show_error=True, enable_queue=True, max_threads=2, # Additional HF Spaces specific settings inbrowser=False, show_tips=False, quiet=True )