antfraia commited on
Commit
401df8c
·
1 Parent(s): 00a5c52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
 
3
  # Instead of launching the model directly, save it to a variable
4
- model_interface = gr.Interface.load("models/google/vit-base-patch16-224")
5
 
6
  # Customize the interface with the desired template properties
7
  model_interface.title = "Image classification"
 
1
  import gradio as gr
2
 
3
  # Instead of launching the model directly, save it to a variable
4
+ model_interface = gr.load("models/google/vit-base-patch16-224")
5
 
6
  # Customize the interface with the desired template properties
7
  model_interface.title = "Image classification"