Spaces:
Runtime error
Runtime error
hotfix: Auto pass children server error
Browse files
apps/apis/__init__.py
CHANGED
@@ -3,6 +3,7 @@ from .rembg import router as rembg_router
|
|
3 |
from .img2text import router as img2text_router
|
4 |
from .chats import router as chats_router
|
5 |
from .fd import router as fd_router
|
|
|
6 |
|
7 |
router = APIRouter(prefix='/api')
|
8 |
|
@@ -11,3 +12,4 @@ router.include_router(rembg_router)
|
|
11 |
router.include_router(img2text_router)
|
12 |
router.include_router(chats_router)
|
13 |
router.include_router(fd_router)
|
|
|
|
3 |
from .img2text import router as img2text_router
|
4 |
from .chats import router as chats_router
|
5 |
from .fd import router as fd_router
|
6 |
+
# from .vqa import router as vqa_router
|
7 |
|
8 |
router = APIRouter(prefix='/api')
|
9 |
|
|
|
12 |
router.include_router(img2text_router)
|
13 |
router.include_router(chats_router)
|
14 |
router.include_router(fd_router)
|
15 |
+
# router.include_router(vqa_router)
|
apps/services/foward/fw_middleware.py
CHANGED
@@ -77,6 +77,8 @@ def forward_request(fw_index: int, data: Any, endpoint: str = '', method: Litera
|
|
77 |
except Exception as e:
|
78 |
print("Forwarding Error: ", e)
|
79 |
response = None
|
|
|
|
|
80 |
# Update forward destination tasks
|
81 |
update_fw_destination(fw_index, fw_destinations[fw_index]['tasks'] - 1)
|
82 |
# Return response
|
|
|
77 |
except Exception as e:
|
78 |
print("Forwarding Error: ", e)
|
79 |
response = None
|
80 |
+
if response is not None and response.status_code != 200:
|
81 |
+
response = None
|
82 |
# Update forward destination tasks
|
83 |
update_fw_destination(fw_index, fw_destinations[fw_index]['tasks'] - 1)
|
84 |
# Return response
|