Spaces:
Running
Running
File size: 1,183 Bytes
7effb2a 4dacb34 7effb2a 4dacb34 7effb2a 4dacb34 7effb2a 4dacb34 7effb2a 4dacb34 7effb2a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | ---
title: Tennis Api
emoji: ⚡
colorFrom: purple
colorTo: yellow
sdk: docker
pinned: false
short_description: API for training and interacting with tennis-insights models
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
# tennis-api
This module is intended for managing tennis data insertion into the database and providing an interface for data retrieval and tennis match predictions.
## Docker Install
To get the service up and running locally, simply follow the steps hereafter:
### Build the API image
From the root of the project:
```bash
$> docker build . -t tennis_api:latest -f Dockerfile
```
For building with pytest capabilities, run:
```bash
$> docker build . --build-arg TEST=true -t tennis_api:latest -f Dockerfile
```
### Run it
From the root of the project:
```bash
$> docker run --rm -p 7860:7860 --env-file .env tennis_api:latest
```
Then go to [http://localhost:7860/](http://localhost:7860/)
The API should be accessible:

## Resources
Website: [http://www.tennis-data.co.uk/alldata.php](http://www.tennis-data.co.uk/alldata.php)
## License
©2025 |