DrekFretson commited on
Commit
0e83f97
·
verified ·
1 Parent(s): d240326

Delete routing_logic.py

Browse files
Files changed (1) hide show
  1. routing_logic.py +0 -23
routing_logic.py DELETED
@@ -1,23 +0,0 @@
1
- from state import QuestionState
2
-
3
-
4
- def route_question(state: QuestionState):
5
- if state["question_category"] == "web_search":
6
- return "web_search"
7
- elif state["question_category"] == "excel_file":
8
- return "excel_to_markdown"
9
- elif state["question_category"] == "text_reasoning":
10
- return "text_reasoning"
11
- elif state["question_category"] == "youtube":
12
- return "get_youtube_transcript"
13
- elif state["question_category"] == "audio":
14
- return "transcribe_audio"
15
- elif state["question_category"] == "other":
16
- return "other"
17
-
18
-
19
- def download_file(state: QuestionState):
20
- if state["file_name"]:
21
- return "get_file"
22
- else:
23
- return "classify_question"