File size: 184 Bytes
25f0c96
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import requests
import streamlit as st


@st.cache
def load_models():
    res = requests.get("https://huggingface.co/api/models").json()
    return [model["modelId"] for model in res]