Spaces:
Sleeping
Sleeping
Download start.sh from Gauthier76/Markdown: direct link, hf CLI and curl.
- Browser
- Download file 799 Bytes
-
https://huggingface.co/spaces/Gauthier76/Markdown/resolve/main/start.sh
- Command line
-
hf download hf://spaces/Gauthier76/Markdown/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/Gauthier76/Markdown/resolve/main/start.sh
799 Bytes
| # ============================ | |
| # MarkitDown — Launcher Mac/Linux | |
| # ============================ | |
| set -e | |
| # Vérifier Python | |
| if ! command -v python3 &>/dev/null; then | |
| echo "Python 3 n'est pas installé." | |
| echo "Veuillez installer Python 3.9+ depuis https://python.org" | |
| exit 1 | |
| fi | |
| # Vérifier / créer le venv | |
| if [ ! -d "venv" ]; then | |
| echo "Création de l'environnement virtuel..." | |
| python3 -m venv venv | |
| fi | |
| echo "Installation / mise à jour des dépendances..." | |
| source venv/bin/activate | |
| pip install -r requirements.txt | |
| echo "" | |
| echo "Lancement de MarkitDown WebApp..." | |
| echo "" | |
| # Ouvrir le navigateur (macOS/Linux) | |
| case "$(uname)" in | |
| Darwin) open http://localhost:5000 ;; | |
| Linux) xdg-open http://localhost:5000 2>/dev/null || true ;; | |
| esac | |
| python app.py |