xiang-wuu commited on
Commit
e0768d6
1 Parent(s): d88280a

working image uri's added

Browse files
Files changed (1) hide show
  1. 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://datasets-server.huggingface.co/cached-assets/imagenet-1k/--/default/test/27/image/image1.jpg")
9
- os.system("wget https://datasets-server.huggingface.co/cached-assets/imagenet-1k/--/default/test/22/image/image2.jpg")
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=[["image1.jpg", "yolov8s-cls"], ["image2.jpg", "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
  )
 
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
  )