Spaces:
Runtime error
Runtime error
File size: 417 Bytes
4d06c1c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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) |