Upload app.py with huggingface_hub
Browse files
app.py
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python3
|
2 |
+
"""
|
3 |
+
PodcastMcpGradio - Main Entry Point
|
4 |
+
|
5 |
+
This is the main entry point for the PodcastMcpGradio application.
|
6 |
+
It supports both local and Modal deployment modes.
|
7 |
+
"""
|
8 |
+
|
9 |
+
import os
|
10 |
+
import sys
|
11 |
+
|
12 |
+
# Add current directory to path for src imports
|
13 |
+
current_dir = os.path.dirname(os.path.abspath(__file__))
|
14 |
+
sys.path.insert(0, current_dir)
|
15 |
+
|
16 |
+
# Import the actual app from src
|
17 |
+
from src.app import create_app, main, get_app
|
18 |
+
|
19 |
+
# Re-export for compatibility
|
20 |
+
__all__ = ["create_app", "main", "get_app"]
|
21 |
+
|
22 |
+
# For direct execution
|
23 |
+
if __name__ == "__main__":
|
24 |
+
from src.app import run_local
|
25 |
+
run_local()
|