CoolFace
Apppublic

Dipa567/ExoPlanetDetector

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿช 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-data with a key named file that 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.

bash
curl -X 'POST' \
  'https://YOUR_SPACE_SUBDOMAIN.hf.space/predict/' \
  -H 'accept: application/json' \
  -F 'file=@/path/to/your/kepler_10797460_lightcurve.csv'