CoolFace
Apppublic

neelabalan/py-package-download-forecast

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
App README
HuggingFace Spaces YAML Front matter config

py-package-download-forecast

![Upload Model Artifact](https://github.com/neelabalan/py-package-download-forecast/actions/workflows/uploadartifact.yml) [![Sync to Hugging Face hub](https://github.com/neelabalan/py-package-download-forecast/actions/workflows/synchfspaces.yml/badge.svg)](https://github.com/neelabalan/py-package-download-forecast/actions/workflows/synchf_spaces.yml)

Workflow

[image]

Generates best ARIMA model every week based on the latest data from PyPI Stats API. The model training happens on the recent data and forecast is done for next 30 days.

Github artifact is used to store the models. The Gradio application hosted in HugginFace Spaces calls the Github Artifact API to download the latest set of models.

Note: The artifact retention days is set to 30 and can be configured from the project settings

[image]


[image] ___

Config

toml
# Set of packages for which model is trained and downloads is forecasted
packages = ["fastapi", "flask", "requests", "pytorch", "tensorflow"]

# github username
username = "neelabalan"

# repository name of project
repo_name = "py-package-download-forecast"

# Forecast steps
forecast_days = 30

# 'm' values to try for best model
m_values = [3, 6]

Reference