update
Browse files- api/core/app.py +2 -2
api/core/app.py
CHANGED
|
@@ -73,7 +73,7 @@ class Demos:
|
|
| 73 |
_resumen = Abstractor.resumen(texto=texto)
|
| 74 |
return _resumen
|
| 75 |
@staticmethod
|
| 76 |
-
def text_to_img(texto:str=None, model:str="PROMPTHERO")->bytes
|
| 77 |
"""Genera un BITARRAY de la imagen con el texto dado.
|
| 78 |
|
| 79 |
args:
|
|
@@ -93,7 +93,7 @@ class Demos:
|
|
| 93 |
elif "PROMPTHERO" in model.upper():
|
| 94 |
_imagen = Generador.using_prompthero_openjourney(prompt=texto)
|
| 95 |
else:
|
| 96 |
-
_imagen =
|
| 97 |
return _imagen
|
| 98 |
@staticmethod
|
| 99 |
def text_to_video(texto:str=None)->str:
|
|
|
|
| 73 |
_resumen = Abstractor.resumen(texto=texto)
|
| 74 |
return _resumen
|
| 75 |
@staticmethod
|
| 76 |
+
def text_to_img(texto:str=None, model:str="PROMPTHERO")->bytes:
|
| 77 |
"""Genera un BITARRAY de la imagen con el texto dado.
|
| 78 |
|
| 79 |
args:
|
|
|
|
| 93 |
elif "PROMPTHERO" in model.upper():
|
| 94 |
_imagen = Generador.using_prompthero_openjourney(prompt=texto)
|
| 95 |
else:
|
| 96 |
+
_imagen = bytes("error", 'utf-8')
|
| 97 |
return _imagen
|
| 98 |
@staticmethod
|
| 99 |
def text_to_video(texto:str=None)->str:
|