File size: 705 Bytes
a902f46 6c2f516 a902f46 6c2f516 a902f46 6c2f516 47ac1a7 6c2f516 a902f46 6c2f516 |
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 |
#!/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() |