File size: 16,556 Bytes
c77acf1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "dac0e0fe-9d17-4ab1-9f5c-b42bfef7450a",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Requirement already satisfied: inference-sdk in c:\\users\\sriram\\anaconda3\\lib\\site-packages (0.9.17)\n",
      "Requirement already satisfied: requests>=2.0.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-sdk) (2.31.0)\n",
      "Requirement already satisfied: dataclasses-json>=0.6.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-sdk) (0.6.7)\n",
      "Requirement already satisfied: opencv-python>=4.8.0.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-sdk) (4.10.0.84)\n",
      "Requirement already satisfied: pillow>=9.0.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-sdk) (10.3.0)\n",
      "Requirement already satisfied: supervision<1.0.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-sdk) (0.22.0)\n",
      "Requirement already satisfied: numpy>=1.20.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-sdk) (1.26.4)\n",
      "Requirement already satisfied: aiohttp>=3.9.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-sdk) (3.9.5)\n",
      "Requirement already satisfied: backoff>=2.2.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-sdk) (2.2.1)\n",
      "Requirement already satisfied: aioresponses>=0.7.6 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-sdk) (0.7.6)\n",
      "Requirement already satisfied: py-cpuinfo>=9.0.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-sdk) (9.0.0)\n",
      "Requirement already satisfied: aiosignal>=1.1.2 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from aiohttp>=3.9.0->inference-sdk) (1.2.0)\n",
      "Requirement already satisfied: attrs>=17.3.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from aiohttp>=3.9.0->inference-sdk) (23.1.0)\n",
      "Requirement already satisfied: frozenlist>=1.1.1 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from aiohttp>=3.9.0->inference-sdk) (1.4.0)\n",
      "Requirement already satisfied: multidict<7.0,>=4.5 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from aiohttp>=3.9.0->inference-sdk) (6.0.4)\n",
      "Requirement already satisfied: yarl<2.0,>=1.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from aiohttp>=3.9.0->inference-sdk) (1.9.3)\n",
      "Requirement already satisfied: marshmallow<4.0.0,>=3.18.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from dataclasses-json>=0.6.0->inference-sdk) (3.21.3)\n",
      "Requirement already satisfied: typing-inspect<1,>=0.4.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from dataclasses-json>=0.6.0->inference-sdk) (0.9.0)\n",
      "Requirement already satisfied: charset-normalizer<4,>=2 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from requests>=2.0.0->inference-sdk) (2.0.4)\n",
      "Requirement already satisfied: idna<4,>=2.5 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from requests>=2.0.0->inference-sdk) (3.7)\n",
      "Requirement already satisfied: urllib3<3,>=1.21.1 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from requests>=2.0.0->inference-sdk) (1.26.19)\n",
      "Requirement already satisfied: certifi>=2017.4.17 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from requests>=2.0.0->inference-sdk) (2024.7.4)\n",
      "Requirement already satisfied: defusedxml<0.8.0,>=0.7.1 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from supervision<1.0.0->inference-sdk) (0.7.1)\n",
      "Requirement already satisfied: matplotlib>=3.6.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from supervision<1.0.0->inference-sdk) (3.8.4)\n",
      "Requirement already satisfied: opencv-python-headless>=4.5.5.64 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from supervision<1.0.0->inference-sdk) (4.10.0.84)\n",
      "Requirement already satisfied: pyyaml>=5.3 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from supervision<1.0.0->inference-sdk) (6.0.1)\n",
      "Requirement already satisfied: scipy<2.0.0,>=1.10.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from supervision<1.0.0->inference-sdk) (1.13.1)\n",
      "Requirement already satisfied: packaging>=17.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from marshmallow<4.0.0,>=3.18.0->dataclasses-json>=0.6.0->inference-sdk) (23.2)\n",
      "Requirement already satisfied: contourpy>=1.0.1 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from matplotlib>=3.6.0->supervision<1.0.0->inference-sdk) (1.2.0)\n",
      "Requirement already satisfied: cycler>=0.10 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from matplotlib>=3.6.0->supervision<1.0.0->inference-sdk) (0.11.0)\n",
      "Requirement already satisfied: fonttools>=4.22.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from matplotlib>=3.6.0->supervision<1.0.0->inference-sdk) (4.51.0)\n",
      "Requirement already satisfied: kiwisolver>=1.3.1 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from matplotlib>=3.6.0->supervision<1.0.0->inference-sdk) (1.4.4)\n",
      "Requirement already satisfied: pyparsing>=2.3.1 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from matplotlib>=3.6.0->supervision<1.0.0->inference-sdk) (3.0.9)\n",
      "Requirement already satisfied: python-dateutil>=2.7 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from matplotlib>=3.6.0->supervision<1.0.0->inference-sdk) (2.9.0.post0)\n",
      "Requirement already satisfied: mypy-extensions>=0.3.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from typing-inspect<1,>=0.4.0->dataclasses-json>=0.6.0->inference-sdk) (1.0.0)\n",
      "Requirement already satisfied: typing-extensions>=3.7.4 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from typing-inspect<1,>=0.4.0->dataclasses-json>=0.6.0->inference-sdk) (4.11.0)\n",
      "Requirement already satisfied: six>=1.5 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from python-dateutil>=2.7->matplotlib>=3.6.0->supervision<1.0.0->inference-sdk) (1.16.0)\n"
     ]
    }
   ],
   "source": [
    "!pip install inference-sdk"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "b60d9992-2fbf-4e46-b032-3e564ddf4fdf",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Requirement already satisfied: inference-cli in c:\\users\\sriram\\anaconda3\\lib\\site-packages (0.9.17)\n",
      "Requirement already satisfied: requests<=2.31.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (2.31.0)\n",
      "Requirement already satisfied: docker==6.1.3 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (6.1.3)\n",
      "Requirement already satisfied: typer==0.9.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (0.9.0)\n",
      "Requirement already satisfied: rich<=13.5.2 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (13.3.5)\n",
      "Requirement already satisfied: skypilot==0.4.1 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (0.4.1)\n",
      "Requirement already satisfied: PyYAML>=6.0.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (6.0.1)\n",
      "Requirement already satisfied: supervision>=0.17.1 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (0.22.0)\n",
      "Requirement already satisfied: opencv-python>=4.6.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (4.10.0.84)\n",
      "Requirement already satisfied: tqdm>=4.0.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (4.66.4)\n",
      "Requirement already satisfied: GPUtil>=1.4.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (1.4.0)\n",
      "Requirement already satisfied: py-cpuinfo>=9.0.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (9.0.0)\n",
      "Requirement already satisfied: aiohttp>=3.9.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (3.9.5)\n",
      "Requirement already satisfied: backoff>=2.2.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (2.2.1)\n",
      "Requirement already satisfied: dataclasses-json>=0.6.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (0.6.7)\n",
      "Requirement already satisfied: pillow>=9.0.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (10.3.0)\n",
      "Requirement already satisfied: numpy>=1.20.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (1.26.4)\n",
      "Requirement already satisfied: aioresponses>=0.7.6 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from inference-cli) (0.7.6)\n",
      "Requirement already satisfied: packaging>=14.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from docker==6.1.3->inference-cli) (23.2)\n",
      "Requirement already satisfied: urllib3>=1.26.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from docker==6.1.3->inference-cli) (1.26.19)\n",
      "Requirement already satisfied: websocket-client>=0.32.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from docker==6.1.3->inference-cli) (1.8.0)\n",
      "Requirement already satisfied: pywin32>=304 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from docker==6.1.3->inference-cli) (305.1)\n",
      "Requirement already satisfied: wheel in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (0.43.0)\n",
      "Requirement already satisfied: cachetools in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (5.3.3)\n",
      "Requirement already satisfied: click>=7.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (8.1.7)\n",
      "Requirement already satisfied: colorama<0.4.5 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (0.4.4)\n",
      "Requirement already satisfied: cryptography in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (42.0.5)\n",
      "Requirement already satisfied: jinja2>=3.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (3.1.4)\n",
      "Requirement already satisfied: jsonschema in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (4.19.2)\n",
      "Requirement already satisfied: networkx in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (3.2.1)\n",
      "Requirement already satisfied: pandas>=1.3.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (2.2.2)\n",
      "Requirement already satisfied: pendulum in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (3.0.0)\n",
      "Requirement already satisfied: PrettyTable>=2.0.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (3.10.2)\n",
      "Requirement already satisfied: python-dotenv in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (0.21.0)\n",
      "Requirement already satisfied: tabulate in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (0.9.0)\n",
      "Requirement already satisfied: typing-extensions in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (4.11.0)\n",
      "Requirement already satisfied: filelock>=3.6.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (3.13.1)\n",
      "Requirement already satisfied: psutil in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (5.9.0)\n",
      "Requirement already satisfied: pulp in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (2.9.0)\n",
      "Requirement already satisfied: awscli>=1.27.10 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (1.33.31)\n",
      "Requirement already satisfied: botocore>=1.29.10 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (1.34.149)\n",
      "Requirement already satisfied: boto3>=1.26.1 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from skypilot==0.4.1->inference-cli) (1.34.149)\n",
      "Requirement already satisfied: aiosignal>=1.1.2 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from aiohttp>=3.9.0->inference-cli) (1.2.0)\n",
      "Requirement already satisfied: attrs>=17.3.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from aiohttp>=3.9.0->inference-cli) (23.1.0)\n",
      "Requirement already satisfied: frozenlist>=1.1.1 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from aiohttp>=3.9.0->inference-cli) (1.4.0)\n",
      "Requirement already satisfied: multidict<7.0,>=4.5 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from aiohttp>=3.9.0->inference-cli) (6.0.4)\n",
      "Requirement already satisfied: yarl<2.0,>=1.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from aiohttp>=3.9.0->inference-cli) (1.9.3)\n",
      "Requirement already satisfied: marshmallow<4.0.0,>=3.18.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from dataclasses-json>=0.6.0->inference-cli) (3.21.3)\n",
      "Requirement already satisfied: typing-inspect<1,>=0.4.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from dataclasses-json>=0.6.0->inference-cli) (0.9.0)\n",
      "Requirement already satisfied: charset-normalizer<4,>=2 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from requests<=2.31.0->inference-cli) (2.0.4)\n",
      "Requirement already satisfied: idna<4,>=2.5 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from requests<=2.31.0->inference-cli) (3.7)\n",
      "Requirement already satisfied: certifi>=2017.4.17 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from requests<=2.31.0->inference-cli) (2024.7.4)\n",
      "Requirement already satisfied: markdown-it-py<3.0.0,>=2.2.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from rich<=13.5.2->inference-cli) (2.2.0)\n",
      "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from rich<=13.5.2->inference-cli) (2.15.1)\n",
      "Requirement already satisfied: defusedxml<0.8.0,>=0.7.1 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from supervision>=0.17.1->inference-cli) (0.7.1)\n",
      "Requirement already satisfied: matplotlib>=3.6.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from supervision>=0.17.1->inference-cli) (3.8.4)\n",
      "Requirement already satisfied: opencv-python-headless>=4.5.5.64 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from supervision>=0.17.1->inference-cli) (4.10.0.84)\n",
      "Requirement already satisfied: scipy<2.0.0,>=1.10.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from supervision>=0.17.1->inference-cli) (1.13.1)\n",
      "Requirement already satisfied: docutils<0.17,>=0.10 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from awscli>=1.27.10->skypilot==0.4.1->inference-cli) (0.16)\n",
      "Requirement already satisfied: s3transfer<0.11.0,>=0.10.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from awscli>=1.27.10->skypilot==0.4.1->inference-cli) (0.10.2)\n",
      "Requirement already satisfied: rsa<4.8,>=3.1.2 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from awscli>=1.27.10->skypilot==0.4.1->inference-cli) (4.7.2)\n",
      "Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from botocore>=1.29.10->skypilot==0.4.1->inference-cli) (1.0.1)\n",
      "Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from botocore>=1.29.10->skypilot==0.4.1->inference-cli) (2.9.0.post0)\n",
      "Requirement already satisfied: MarkupSafe>=2.0 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from jinja2>=3.0->skypilot==0.4.1->inference-cli) (2.1.3)\n",
      "Requirement already satisfied: mdurl~=0.1 in c:\\users\\sriram\\anaconda3\\lib\\site-packages (from markdown-it-py<3.0.0,>=2.2.0->rich<=13.5.2->inference-cli