Spaces:
Sleeping
Sleeping
File size: 336 Bytes
5551822 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from utils.asyncHandler import asyncHandler
from src.MultiRag.models.worker_model import State
import logging
from src.MultiRag.constants import AVAILABLE_ANALYSIS
@asyncHandler
async def decider_node(state:State):
if state.file_type in AVAILABLE_ANALYSIS:
return state.file_type
else:
return "end"
|