Projekt_IO/test.py

10 lines
169 B
Python
Raw Normal View History

2024-01-20 18:10:17 +01:00
import requests
url = 'http://127.0.0.1:5000/detect-cat'
files = {'image': (open('cat1.jpg', 'rb'))}
response = requests.post(url, files=files)
print(response.text)