coder160 commited on
Commit
bbf76f2
1 Parent(s): 334dd01

update img format

Browse files
Files changed (1) hide show
  1. api/core/controllers/text2image.py +1 -1
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=image.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: