File size: 1,044 Bytes
345a44c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
#!/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
) |