Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def generate_image(prompt_SD:str):
|
|
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 |
|
62 |
return img
|
|
|
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 |
|
62 |
return img
|