import os import sys import subprocess try: subprocess.check_call([sys.executable, "-m", "pip", "install", "git+https://github.com/broadfield-dev/repo_to_md.git#egg=repo_to_md[demo]"]) except subprocess.CalledProcessError as e: print(f"Failed to install package: {e}") sys.exit(1) from repo_to_md import create_markdown_document try: from repo_to_md import run_demo except ImportError as e: print(f"Failed to import run_demo: {e}") sys.exit(1) # Run the demo (default: http://localhost:7860) run_demo()