TeamHaltmannSusanaHWCEO commited on
Commit
1ae97e7
1 Parent(s): 4eff038

Request to upload 11.1.22 10:18

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -122,7 +122,7 @@ def inpaint_image(image_path):
122
  response = requests.request("POST", url, headers=headers, data = payload, files = files)
123
  print(response.text.encode('utf8'))
124
 
125
- image_url = response.json()["data"][0]
126
  urllib.request.urlretrieve(image_url, "image.png")
127
  image = load_image("image.png")
128
  return image
@@ -131,4 +131,4 @@ def inpaint_image(image_path):
131
  image_file = st.file_uploader("Upload an image", type=['jpg', 'png', 'jpeg'])
132
 
133
  if image_file is not None:
134
- generate_image(image_file)
 
122
  response = requests.request("POST", url, headers=headers, data = payload, files = files)
123
  print(response.text.encode('utf8'))
124
 
125
+ image_url = response.json()["data"][0]["image"]
126
  urllib.request.urlretrieve(image_url, "image.png")
127
  image = load_image("image.png")
128
  return image
 
131
  image_file = st.file_uploader("Upload an image", type=['jpg', 'png', 'jpeg'])
132
 
133
  if image_file is not None:
134
+ generate_image(image_file)