Spaces:
Paused
Paused
File size: 273 Bytes
1efd233 6bf2756 1efd233 c26a148 6bf2756 1efd233 6bf2756 |
1 2 3 4 5 6 7 8 9 10 11 |
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()
|