Skip to content

Commit

Permalink
update: railway api (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincentqyw authored Oct 5, 2024
1 parent 2576729 commit 295362f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ or using [docker](https://hub.docker.com/r/vincentqin/image-matching-webui):
docker pull vincentqin/image-matching-webui:latest
docker run -it -p 7860:7860 vincentqin/image-matching-webui:latest python app.py --server_name "0.0.0.0" --server_port=7860
```

### Deploy to Railway

Deploy to [Railway](https://railway.app/), setting up a `Custom Start Command` in `Deploy` section:

``` bash
python -m api.server
```

### Run demo
``` bash
Expand Down
1 change: 0 additions & 1 deletion server.py → api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from ui.api import ImageMatchingAPI
from ui.utils import DEVICE


class ImageInfo(BaseModel):
image_path: str
max_keypoints: int
Expand Down

0 comments on commit 295362f

Please sign in to comment.