#!/usr/bin/env python3 """ BitTransformerLM HuggingFace Space Entry Point ============================================== Main entry point for HuggingFace Spaces deployment. This file is automatically detected by HF Spaces and launches the Gradio interface. """ import os import sys from pathlib import Path # Add current directory to path for imports sys.path.insert(0, str(Path(__file__).parent)) # Import and launch the Gradio interface from gradio_dashboard import create_gradio_interface # Environment setup for HF Spaces os.environ.setdefault("GRADIO_SHARE", "False") os.environ.setdefault("GRADIO_ANALYTICS_ENABLED", "False") if __name__ == "__main__": # Create and launch interface for HuggingFace Spaces interface = create_gradio_interface() # Launch with HF Spaces optimized settings interface.launch( show_error=True, show_api=False, # Hide API docs for cleaner interface quiet=False, # Show startup logs auth=None, # No authentication needed for public demo )