Ifeanyi commited on
Commit
5199d5d
·
1 Parent(s): c25036b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -1,5 +1,7 @@
1
- pip Install transformers
2
  from transformers import pipeline
3
  import gradio as gr
4
- model = pipeline("image-classification")
5
- gr.Interface.from_pipeline(model).launch()
 
 
 
1
+ pip install transformers
2
  from transformers import pipeline
3
  import gradio as gr
4
+
5
+ def Classify():
6
+ model = pipeline("image-classification")
7
+ return gr.Interface.from_pipeline(model).launch()