update img format
Browse files
api/core/controllers/text2image.py
CHANGED
|
@@ -5,7 +5,7 @@ class Generador:
|
|
| 5 |
def img_to_bytes(image) -> bytes:
|
| 6 |
import io
|
| 7 |
_imgByteArr = io.BytesIO()
|
| 8 |
-
image.save(_imgByteArr, format=
|
| 9 |
return _imgByteArr.getvalue()
|
| 10 |
def using_runway_sd_15(prompt:str)->bytes:
|
| 11 |
try:
|
|
|
|
| 5 |
def img_to_bytes(image) -> bytes:
|
| 6 |
import io
|
| 7 |
_imgByteArr = io.BytesIO()
|
| 8 |
+
image.save(_imgByteArr, format="png")
|
| 9 |
return _imgByteArr.getvalue()
|
| 10 |
def using_runway_sd_15(prompt:str)->bytes:
|
| 11 |
try:
|