update file input
Browse files- api/main.py +1 -1
api/main.py
CHANGED
|
@@ -54,7 +54,7 @@ def get_text2speach(data:dict) -> dict:
|
|
| 54 |
|
| 55 |
|
| 56 |
@api.post("/imagen_a_imagen/", status_code=201, responses = {201: {"content": {"image/png": {}}}} ,response_class=__main.api_response)
|
| 57 |
-
def get_img2img(data:dict, file: bytes = __main.fileupload()):
|
| 58 |
__response=dict({"request_data":data})
|
| 59 |
try:
|
| 60 |
if data and 'texto' in data and 'modelo' in data and file is not None:
|
|
|
|
| 54 |
|
| 55 |
|
| 56 |
@api.post("/imagen_a_imagen/", status_code=201, responses = {201: {"content": {"image/png": {}}}} ,response_class=__main.api_response)
|
| 57 |
+
def get_img2img(data:dict, file: bytes = __main.fileupload(...)):
|
| 58 |
__response=dict({"request_data":data})
|
| 59 |
try:
|
| 60 |
if data and 'texto' in data and 'modelo' in data and file is not None:
|