#!/usr/bin/env python3 import os import sys # Add the current directory to Python path sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) from app import app if __name__ == "__main__": # Ensure ARTICLE_DIR environment variable is set if not already if "ARTICLE_DIR" not in os.environ: print("Warning: ARTICLE_DIR environment variable not set. Using default path.") app.run(host="0.0.0.0", port=5000, debug=True)