decodemai commited on
Commit
a49071b
1 Parent(s): 1b7bcbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def generate_image(prompt_SD:str):
55
  "Content-Type": "application/json",
56
  "Accept": "image/png" # important to get an image back
57
  }
58
- response = r.post(ENDPOINT_URL, headers=headers, json=payload)
59
  print(response.content)
60
  img = Image.open(BytesIO(response.content))
61
 
 
55
  "Content-Type": "application/json",
56
  "Accept": "image/png" # important to get an image back
57
  }
58
+ response = requests.post(ENDPOINT_URL, headers=headers, json=payload)
59
  print(response.content)
60
  img = Image.open(BytesIO(response.content))
61