Spaces:
Running
Running
File size: 530 Bytes
e342171 23b82dc 559309b e342171 559309b 23b82dc 559309b 398bf5b 559309b e342171 559309b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
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() |