Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
|
4 |
def yolov9_inference(img_path, model_path,image_size, conf_threshold, iou_threshold):
|
5 |
"""
|
6 |
Load a YOLOv9 model, configure it, perform inference on an image, and optionally adjust
|
|
|
1 |
import gradio as gr
|
2 |
+
import spaces
|
3 |
|
4 |
+
@spaces.GPU
|
5 |
def yolov9_inference(img_path, model_path,image_size, conf_threshold, iou_threshold):
|
6 |
"""
|
7 |
Load a YOLOv9 model, configure it, perform inference on an image, and optionally adjust
|