brian25 commited on
Commit
aa749ff
·
verified ·
1 Parent(s): 16bab95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -1,7 +1,11 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- demo = gr.Interface(fn=greet, inputs="image", outputs="text")
 
 
 
 
 
7
  demo.launch()
 
1
  import gradio as gr
2
 
3
+ from ultralytics import YOLO
 
4
 
5
+ model = YOLO("best.pt")
6
+
7
+ def greet(detection):
8
+ return model(detection)
9
+
10
+ demo = gr.Interface(fn=greet, inputs="image", outputs="image")
11
  demo.launch()