cyclone-forecast-india / inference.py
Yashk-13's picture
Create inference.py
d77ca8b verified
raw
history blame contribute delete
226 Bytes
from anemoi.models import AIFS
import torch
# Load model once
model = AIFS.from_pretrained("ecmwf/aifs-single-0.2.1").to("cpu")
def run_forecast(inputs_path: str):
outputs = model.predict(inputs_path)
return outputs