Spaces:
Runtime error
Runtime error
Commit
·
5a12f86
1
Parent(s):
c8326a4
upload demo
Browse filesmicrosoft model...
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#import gradio as gr
|
2 |
+
|
3 |
+
# Definiendo titulo y descripcion al modelo...
|
4 |
+
titulo = "Mi primer demo con Hugging Face"
|
5 |
+
descripcion = "Este es un demo ejecutado durante la clase con Platzi."
|
6 |
+
|
7 |
+
# Descargar el modelo desde HuggingFace...
|
8 |
+
gr.Interface.load(
|
9 |
+
"huggingface/microsoft/swin-tiny-patch4-window7-224",
|
10 |
+
inputs=gr.Image(label="Carga una imagen aquí"),
|
11 |
+
title = titulo,
|
12 |
+
description = descripcion
|
13 |
+
).launch()
|