Spaces:
Build error
Build error
Enhance README.md and main.py for HuggingFace Spaces deployment - Updated README to include live demo links, deployment checklist, and detailed instructions for setting up HuggingFace Spaces. Improved main.py with enhanced environment detection for Spaces and optimized backend configuration, ensuring a smoother deployment experience. This update aims to provide clearer guidance for users and streamline the deployment process for the BeatDebate application.
4923cf4 | """ | |
| HuggingFace Spaces entry point for BeatDebate. | |
| This file is required by HuggingFace Spaces as the main application entry point. | |
| """ | |
| import os | |
| import sys | |
| # Add src to path for imports | |
| sys.path.append(os.path.join(os.path.dirname(__file__), 'src')) | |
| # Import after path setup | |
| from src.main import create_gradio_app | |
| # Create and launch the Gradio app | |
| app = create_gradio_app() | |
| if __name__ == "__main__": | |
| app.launch() |