model_explorer4 / app.py
dwb2023's picture
Update app.py
c26a148 verified
raw
history blame
273 Bytes
import gradio as gr
from transformers import AutoModel
@spaces.GPU
def get_model_summary(model_name):
model = AutoModel.from_pretrained(model_name)
return str(model)
interface = gr.Interface(fn=get_model_summary, inputs="text", outputs="text")
interface.launch()