Spaces:
Runtime error
Runtime error
Commit
·
f01abea
1
Parent(s):
05e0373
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
titulo = "Mi primer demo con Hugging Face"
|
| 4 |
+
descripcion = "Este es un demo ejecutado durante la clase con Platzi."
|
| 5 |
+
|
| 6 |
+
gr.Interface.load(
|
| 7 |
+
"huggingface/microsoft/swin-tiny-patch4-window7-224",
|
| 8 |
+
inputs=gr.Image(label="Carga una imagen aquí"),
|
| 9 |
+
title = titulo,
|
| 10 |
+
description = descripcion
|
| 11 |
+
).launch()
|