Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -130,7 +130,7 @@ def generate_image_from_prompt(prompt: str, negative_prompt: str = "", height: i
|
|
| 130 |
}
|
| 131 |
|
| 132 |
# Make the API call
|
| 133 |
-
response = requests.post(API_URL,
|
| 134 |
|
| 135 |
if response.status_code != 200:
|
| 136 |
return f"Error generating image: {response.text}"
|
|
|
|
| 130 |
}
|
| 131 |
|
| 132 |
# Make the API call
|
| 133 |
+
response = requests.post(API_URL, json=payload)
|
| 134 |
|
| 135 |
if response.status_code != 200:
|
| 136 |
return f"Error generating image: {response.text}"
|