Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ class Prodia:
|
|
| 43 |
|
| 44 |
def generate_v2(self, config):
|
| 45 |
response = self._post("https://inference.prodia.com/v2/job", {"type": "v2.job.sdxl.txt2img", "config": config}, v2=True)
|
| 46 |
-
return Image.open(BytesIO(
|
| 47 |
|
| 48 |
|
| 49 |
def _post(self, url, params, v2=False):
|
|
|
|
| 43 |
|
| 44 |
def generate_v2(self, config):
|
| 45 |
response = self._post("https://inference.prodia.com/v2/job", {"type": "v2.job.sdxl.txt2img", "config": config}, v2=True)
|
| 46 |
+
return Image.open(BytesIO(response.content)).convert("RGBA")
|
| 47 |
|
| 48 |
|
| 49 |
def _post(self, url, params, v2=False):
|