Skip to content

Commit

Permalink
Merge pull request CatchTheTornado#17 from CatchTheTornado/bugfix_12
Browse files Browse the repository at this point in the history
  • Loading branch information
pkarw authored Nov 4, 2024
2 parents 13b7243 + dd76b94 commit 50e067a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ python llm_generate --prompt "Your prompt here"
Example:

```bash
curl -X POST "http://localhost:8000/ocr" -F "file=examples/example-mri.pdf" -F "strategy=marker" -F "ocr_cache=true"
curl -X POST -H "Content-Type: multipart/form-data" -F "data=examples/example-mri.pdf" -F "strategy=marker" -F "ocr_cache=true" -F "prompt=" -F "model=" "http://localhost:8000/ocr"
```

### OCR Result Endpoint
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND-redis://redis:6379/0}
- LLM_PULL_API_URL=${LLM_PULL_API_URL-http://web:8000/llm_pull}
- LLM_GENEREATE_API_URL=${LLM_GENEREATE_API_URL-http://web:8000/llm_generate}
- OLLAMA_HOST${OLLAMA_HOST-http://ollama:11434}
- OLLAMA_HOST=${OLLAMA_HOST-http://ollama:11434}
- APP_ENV=${APP_ENV-development} # Default to development mode
depends_on:
- redis
Expand Down Expand Up @@ -60,15 +60,15 @@ services:


ollama:
image: ollama/ollama:latest # Use the official Ollama image
image: ollama/ollama:0.4.0-rc6-rocm # Use the official Ollama image
container_name: ollama
pull_policy: always
tty: true
restart: always
ports:
- "11434:11434" # Expose Ollama's API port, changing internal to external port
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:11434/health"] # Assumes health endpoint exists
test: ["CMD", "curl", "-f", "http://localhost:11434/"] # Assumes health endpoint exists
interval: 30s
timeout: 10s
retries: 3
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND-redis://redis:6379/0}
- LLM_PULL_API_URL=${LLM_PULL_API_URL-http://web:8000/llm_pull}
- LLM_GENEREATE_API_URL=${LLM_GENEREATE_API_URL-http://web:8000/llm_generate}
- OLLAMA_HOST${OLLAMA_HOST-http://ollama:11434}
- OLLAMA_HOST=${OLLAMA_HOST-http://ollama:11434}
- APP_ENV=${APP_ENV-development} # Default to development mode
depends_on:
- redis
Expand Down Expand Up @@ -45,15 +45,15 @@ services:


ollama:
image: ollama/ollama:latest # Use the official Ollama image
image: ollama/ollama:0.4.0-rc6-rocm # Use the official Ollama image
container_name: ollama
pull_policy: always
tty: true
restart: always
ports:
- "11434:11434" # Expose Ollama's API port, changing internal to external port
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:11434/health"] # Assumes health endpoint exists
test: ["CMD", "curl", "-f", "http://localhost:11434/"] # Assumes health endpoint exists
interval: 30s
timeout: 10s
retries: 3
Expand Down

0 comments on commit 50e067a

Please sign in to comment.