awacke1's picture
Create app.py
4d06c1c
raw
history blame contribute delete
417 Bytes
import transformers
import streamlit as st
from transformers import pipeline, HfApi
# List all functions in the transformers library
st.write("## Functions in the `transformers` library")
st.write(dir(transformers))
# Use Hugging Face Model Hub API to list models
st.write("## Models available on the Hugging Face Model Hub")
api = HfApi()
models = api.model_list()
for model in models:
st.write(model.modelId)