@@ -3,13 +3,13 @@ HAS_GPU := `command -v nvidia-smi > /dev/null && echo 1 || echo 0`
33help :
44 @ echo " PDF Document Layout Analysis - Available Commands:"
55 @ echo " "
6- @ echo " 📄 Standard PDF Analysis (main app only ):"
7- @ echo " just start - Auto-detects GPU, starts main app only "
8- @ echo " just start_no_gpu - Forces CPU mode, starts main app only "
9- @ echo " just start_detached - Background mode, main app only (CPU)"
10- @ echo " just start_detached_gpu - Background mode, main app only (GPU)"
6+ @ echo " 📄 Standard PDF Analysis (API + Gradio UI ):"
7+ @ echo " just start - Auto-detects GPU, starts API and UI "
8+ @ echo " just start_no_gpu - Forces CPU mode, starts API and UI "
9+ @ echo " just start_detached - Background mode, API only (CPU)"
10+ @ echo " just start_detached_gpu - Background mode, API only (GPU)"
1111 @ echo " "
12- @ echo " 🌐 With Translation Features (includes Ollama):"
12+ @ echo " 🌐 With Translation Features (API + UI + Ollama):"
1313 @ echo " just start_translation - Auto-detects GPU, includes Ollama"
1414 @ echo " just start_translation_no_gpu - Forces CPU mode, includes Ollama"
1515 @ echo " "
2828 @ echo " just remove_docker_images - Remove Docker images"
2929 @ echo " just free_up_space - Free up system space"
3030 @ echo " "
31- @ echo " 💡 Tip: Use 'just start' for basic PDF analysis, 'just start_translation' for translation features "
31+ @ echo " 💡 Tip: 'just start' launches both API (port 5060) and UI (port 7860) "
3232
3333install :
3434 . .venv/ bin/ activate; pip install -Ur requirements.txt
@@ -57,16 +57,16 @@ start:
5757 mkdir -p ./ models
5858 if [ {{ HAS_GPU}} -eq 1 ]; then \
5959 echo " NVIDIA GPU detected, using docker-compose-gpu.yml" ; \
60- docker compose -f docker-compose-gpu.yml up --build pdf-document-layout-analysis-gpu; \
60+ docker compose -f docker-compose-gpu.yml up --build pdf-document-layout-analysis-gpu pdf-document-layout-analysis-gui-gpu ; \
6161 else \
6262 echo " No NVIDIA GPU detected, using docker-compose.yml" ; \
63- docker compose -f docker-compose.yml up --build pdf-document-layout-analysis; \
63+ docker compose -f docker-compose.yml up --build pdf-document-layout-analysis pdf-document-layout-analysis-gui ; \
6464 fi
6565
6666start_no_gpu :
6767 mkdir -p ./ models
6868 @ echo " Starting with CPU-only configuration"
69- docker compose up --build pdf-document-layout-analysis
69+ docker compose up --build pdf-document-layout-analysis pdf-document-layout-analysis-gui
7070
7171start_translation :
7272 #!/ bin/ bash
@@ -90,7 +90,7 @@ start_translation:
9090 echo " Warning: Ollama GPU container may not be fully healthy yet, but continuing..."
9191 fi
9292 echo " Starting all services with translation support..."
93- docker compose -f docker-compose-gpu.yml up --build pdf-document-layout-analysis-gpu-translation
93+ docker compose -f docker-compose-gpu.yml up --build pdf-document-layout-analysis-gpu-translation pdf-document-layout-analysis-gui-gpu-translation
9494 else
9595 echo " No NVIDIA GPU detected, starting with translation support (CPU Ollama)"
9696 echo " Starting Ollama container first..."
@@ -110,7 +110,7 @@ start_translation:
110110 echo " Warning: Ollama container may not be fully healthy yet, but continuing..."
111111 fi
112112 echo " Starting all services with translation support..."
113- docker compose -f docker-compose.yml up --build pdf-document-layout-analysis-translation
113+ docker compose -f docker-compose.yml up --build pdf-document-layout-analysis-translation pdf-document-layout-analysis-gui-translation
114114 fi
115115
116116start_translation_no_gpu :
@@ -134,7 +134,7 @@ start_translation_no_gpu:
134134 echo " Warning: Ollama container may not be fully healthy yet, but continuing..."
135135 fi
136136 echo " Starting all services with translation support..."
137- docker compose up --build pdf-document-layout-analysis-translation
137+ docker compose up --build pdf-document-layout-analysis-translation pdf-document-layout-analysis-gui-translation
138138
139139stop :
140140 docker compose stop
0 commit comments