Små endringer

This commit is contained in:
2022-01-18 22:07:30 +01:00
parent 5212aa9837
commit 6055f7f4ee
3 changed files with 2 additions and 30 deletions

View File

@@ -1,8 +1,8 @@
from flask import Flask, request, jsonify
import requests
url = 'http://127.0.0.1:5000/post_img'
my_img = {'image': open('/home/trygve/Pictures/boiled.png', 'rb')}
url = 'http://10.10.40.2:5000/post_img'
my_img = {'image': open('test.png', 'rb')}
r = requests.post(url, files=my_img)
# convert server response into JSON format.