File size: 1,378 Bytes
80c4760
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
	"info": {
		"_postman_id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
		"name": "NOW Classification API",
		"description": "A collection for testing the Flask API that serves a YOLOv8 classification model. The API takes an image file and returns the top predicted classes with their confidence scores.",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Predict Image Class",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "file",
							"type": "file",
							"description": "The image file (jpg, png, jpeg) to be classified. You must select a file from your computer.",
							"src": []
						}
					]
				},
				"url": {
					"raw": "http://127.0.0.1:5000/predict",
					"protocol": "http",
					"host": [
						"127",
						"0",
						"0",
						"1"
					],
					"port": "5000",
					"path": [
						"predict"
					]
				},
				"description": "Upload an image to get its classification predictions. \n\n**Instructions:**\n1. Go to the **Body** tab below.\n2. Make sure **form-data** is selected.\n3. Find the key named `file`.\n4. On the right side of that row, click **Select Files** and choose an image from your computer.\n5. Click **Send**."
			},
			"response": []
		}
	]
}