Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
| 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 |
|