FREDML / streamlit_app.py
Edwin Salguero
Fix Streamlit Cloud deployment issues and deprecated pandas warnings
c8344df
raw
history blame
542 Bytes
#!/usr/bin/env python3
"""
FRED ML - Economic Analytics Platform
Streamlit Cloud Deployment Entry Point
"""
import sys
import os
# Add the frontend directory to the path
current_dir = os.path.dirname(os.path.abspath(__file__))
frontend_dir = os.path.join(current_dir, 'frontend')
if frontend_dir not in sys.path:
sys.path.insert(0, frontend_dir)
# Import and run the main app
import app
# The app.py file already has the main() function and runs it when __name__ == "__main__"
# We just need to import it to trigger the Streamlit app