File size: 587 Bytes
b8df1fd
 
4a9863b
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
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)