22
Browse files
app.py
CHANGED
|
@@ -9,8 +9,8 @@ def greet(name):
|
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
-
url = "http://127.0.0.1:5001/samaibackend/us-central1/test"
|
| 13 |
-
payload = {"
|
| 14 |
headers = {"Content-Type": "application/json"}
|
| 15 |
|
| 16 |
response = requests.post(url, data=json.dumps(payload), headers=headers)
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
+
url = "http://127.0.0.1:5001/samaibackend/us-central1/test/image"
|
| 13 |
+
payload = {"image": "cat"}
|
| 14 |
headers = {"Content-Type": "application/json"}
|
| 15 |
|
| 16 |
response = requests.post(url, data=json.dumps(payload), headers=headers)
|