Download weights from github repo in streamlit cloud

Hello :wave:,

I need to use this file in my dev, but can’t upload it to my repo because of the size.

How can i download it in streamlit cloud?

I need something like…

!wget https://github.com/TencentARC/GFPGAN/releases/download/v0.1.0/GFPGANv1.pth -P pretrained_models

Thanks! :smile:

Hi @angelicaba23 -

You can use the requests library within Python in a similar way to wget:

Best,
Randy

1 Like