richard-su's picture
Upload app.py with huggingface_hub
6c2f516 verified
raw
history blame contribute delete
705 Bytes
#!/usr/bin/env python3
"""
PodcastMcpGradio - Main Entry Point
This is the main entry point for the PodcastMcpGradio application.
Simplified for Hugging Face Spaces deployment.
"""
import os
import sys
# Add current directory to path for src imports
current_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, current_dir)
# Set environment for HF Spaces
os.environ.setdefault("DEPLOYMENT_MODE", "local")
os.environ.setdefault("HF_SPACES_MODE", "1")
# Import and create app
from src.app import create_app, run_local
# Create app instance
app = create_app()
if __name__ == "__main__":
# Run the application
print("πŸš€ Starting PodcastMcpGradio application")
run_local()