Spaces:
Runtime error
Runtime error
working image uri's added
Browse files- classify_utils.py +3 -3
classify_utils.py
CHANGED
@@ -5,8 +5,8 @@ import requests
|
|
5 |
import supervision as sv
|
6 |
import os
|
7 |
|
8 |
-
os.system("wget https://
|
9 |
-
os.system("wget https://
|
10 |
|
11 |
response = requests.get("https://git.io/JJkYN")
|
12 |
labels = response.text.split("\n")
|
@@ -41,6 +41,6 @@ classify_tab = gr.Interface(
|
|
41 |
inputs=inputs_thresh,
|
42 |
outputs=gr.outputs.Label(num_top_classes=4),
|
43 |
title="supervision",
|
44 |
-
examples=[["
|
45 |
description="Gradio based demo for <a href='https://github.com/roboflow/supervision' style='text-decoration: underline' target='_blank'>roboflow/supervision</a>, We write your reusable computer vision tools."
|
46 |
)
|
|
|
5 |
import supervision as sv
|
6 |
import os
|
7 |
|
8 |
+
os.system("wget https://raw.githubusercontent.com/spmallick/learnopencv/master/Keras-Pre-Trained-ImageNet-Models/images/elephant.png")
|
9 |
+
os.system("wget https://raw.githubusercontent.com/spmallick/learnopencv/master/Keras-Pre-Trained-ImageNet-Models/images/baseball-player.png")
|
10 |
|
11 |
response = requests.get("https://git.io/JJkYN")
|
12 |
labels = response.text.split("\n")
|
|
|
41 |
inputs=inputs_thresh,
|
42 |
outputs=gr.outputs.Label(num_top_classes=4),
|
43 |
title="supervision",
|
44 |
+
examples=[["elephant.png", "yolov8s-cls"], ["baseball-player.png", "yolov8n-cls"]],
|
45 |
description="Gradio based demo for <a href='https://github.com/roboflow/supervision' style='text-decoration: underline' target='_blank'>roboflow/supervision</a>, We write your reusable computer vision tools."
|
46 |
)
|