antfraia commited on
Commit
8c67b0b
·
1 Parent(s): 4bb934d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -1,3 +1,13 @@
1
  import gradio as gr
2
 
3
- gr.Interface.load("models/google/vit-base-patch16-224").launch()
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ gr.load("models/google/vit-base-patch16-224").launch()
4
+
5
+ iface = gr.Interface(
6
+ title="Image recognition",
7
+ description="Upload an image you want to categorize.",
8
+ theme="Monochrome",
9
+ live=True,
10
+ capture_session=True,
11
+ )
12
+
13
+ iface.launch()