openclimatefix / PVNet

PVnet main repo
MIT License
17 stars 3 forks source link

model card uploaded to huggingface with model #81

Closed dfulu closed 1 year ago

dfulu commented 1 year ago

Pull Request

Description

Fix bug which was not updating the model card on huggingface when a new model is uploaded. Now model and card are updated simultaneously and makes it easier to link the model to a specific run on wandb

Fixes #

How Has This Been Tested?

Tested locally from command line. These functions are only ever intended to be run from command line

codecov[bot] commented 1 year ago

Codecov Report

Merging #81 (27c00a7) into main (5bc57a6) will increase coverage by 0.19%. The diff coverage is 33.33%.

:exclamation: Current head 27c00a7 differs from pull request most recent head 0652cfb. Consider uploading reports for the commit 0652cfb to get more accurate results

@@            Coverage Diff             @@
##             main      #81      +/-   ##
==========================================
+ Coverage   63.98%   64.18%   +0.19%     
==========================================
  Files          21       21              
  Lines        1480     1477       -3     
==========================================
+ Hits          947      948       +1     
+ Misses        533      529       -4     
Files Changed Coverage Δ
pvnet/models/base_model.py 35.48% <33.33%> (+1.09%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more