import gradio as gr title = "Platzi - Usando el ´microsoft/swin-tiny-patch4-window7-224´" description = "Demo de Gradio creado en una clase de Platzi. Se utiliza un modelo Swin Transformer entrenado en ImageNet-1k a una resolución de 224x224. Fue presentado en el artículo Swin Transformer: Hierarchical Vision Transformer usando Shifted Windows por Liu et al." gr.Interface.load( "huggingface/microsoft/swin-tiny-patch4-window7-224", inputs=gr.Image(label="Carga una imagen aquí."), title=title, description=description ).launch(enable_queue=True, share=True)