Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
|
| 2 |
import gradio as gr
|
| 3 |
def function(image):
|
| 4 |
-
model = YOLO('
|
| 5 |
image = np.array(image)
|
| 6 |
results = model.predict(image)
|
| 7 |
img=Image.fromarray(result[0].plot())
|
|
|
|
| 1 |
|
| 2 |
import gradio as gr
|
| 3 |
def function(image):
|
| 4 |
+
model = YOLO('best_yolo_2.pt')
|
| 5 |
image = np.array(image)
|
| 6 |
results = model.predict(image)
|
| 7 |
img=Image.fromarray(result[0].plot())
|