Dipa567/ExoPlanetDetector
0
๐ช Exoplanet Classification API
This Space hosts a LightGBM model that predicts the probability of an exoplanet's existence based on time-series data from a lightcurve CSV file.
The API is built with FastAPI and is running in a Docker container.
API Endpoint: /predict/
To get a prediction, you must send a POST request to the /predict/ endpoint with the lightcurve data sent as a file upload.
Request
- Method:
POST - URL:
https://YOUR_SPACE_SUBDOMAIN.hf.space/predict/ - Body:
multipart/form-datawith a key namedfilethat holds your CSV file.
The CSV file must contain a header and a column named flux.
Example cURL Request
Replace kepler_10797460_lightcurve.csv with the path to your local CSV file.
curl -X 'POST' \
'https://YOUR_SPACE_SUBDOMAIN.hf.space/predict/' \
-H 'accept: application/json' \
-F 'file=@/path/to/your/kepler_10797460_lightcurve.csv'