Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
51ce6d8
1
Parent(s):
b63699d
Updated requirements
Browse files- app.py +1 -2
- requirements.txt +2 -3
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
import PIL.Image as Image
|
4 |
-
from ultralytics import
|
5 |
|
6 |
|
7 |
|
@@ -13,7 +13,6 @@ def predict_image(img, conf_threshold, iou_threshold):
|
|
13 |
|
14 |
results = model.predict(
|
15 |
source=img,
|
16 |
-
device='cuda:0',
|
17 |
conf=conf_threshold,
|
18 |
iou=iou_threshold,
|
19 |
show_labels=True,
|
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
import PIL.Image as Image
|
4 |
+
from ultralytics import YOLO
|
5 |
|
6 |
|
7 |
|
|
|
13 |
|
14 |
results = model.predict(
|
15 |
source=img,
|
|
|
16 |
conf=conf_threshold,
|
17 |
iou=iou_threshold,
|
18 |
show_labels=True,
|
requirements.txt
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
ultralytics
|
2 |
-
|
3 |
-
|
4 |
-
spaces
|
|
|
1 |
ultralytics
|
2 |
+
spaces
|
3 |
+
gradio
|
|