Spaces:
Sleeping
Sleeping
Commit
·
63055a9
1
Parent(s):
2c558e4
My first demo
Browse files- Use microsoft model
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
title = "Mi first demo with hugging face"
|
3 |
+
description = "This is a demo executed during platzi class"
|
4 |
+
##gr.Interface.load( ## will be deprecated
|
5 |
+
gr.load(
|
6 |
+
"huggingface/microsoft/swin-tiny-patch4-window7-224", ## Hugging Id model
|
7 |
+
inputs=gr.Image(label="Upload an image here"),
|
8 |
+
title=title,
|
9 |
+
description=description
|
10 |
+
).launch()
|