Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
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()
|