12 lines
381 B
Python
12 lines
381 B
Python
import requests
|
|
|
|
url = "http://localhost:8000/analyze/pi"
|
|
image_path = "/Users/matthias/.gemini/antigravity/brain/8baa96e5-b978-4054-8e90-3451bd7a8b70/messy_room_with_mug_1769719323032.png"
|
|
|
|
with open(image_path, "rb") as f:
|
|
files = {"file": f}
|
|
response = requests.post(url, files=files)
|
|
|
|
print(f"Status Code: {response.status_code}")
|
|
print(f"Response: {response.json()}")
|