Spaces:
Sleeping
Sleeping
Alexandre Gazola
commited on
Commit
·
20fa9f7
1
Parent(s):
b2f20fc
test
Browse files- langchain_agent.py +3 -2
langchain_agent.py
CHANGED
|
@@ -16,7 +16,7 @@ from excel_parser_tool import parse_excel
|
|
| 16 |
from analyse_chess_position_tool import get_chess_best_move
|
| 17 |
from convert_chessboard_image_to_fen_tool import convert_chessboard_image_to_fen
|
| 18 |
from chess_image_to_fen_tool import chess_image_to_fen
|
| 19 |
-
from audio_to_text_tool import audio_to_text
|
| 20 |
|
| 21 |
class LangChainAgent:
|
| 22 |
def __init__(self):
|
|
@@ -35,7 +35,8 @@ class LangChainAgent:
|
|
| 35 |
parse_excel,
|
| 36 |
chess_image_to_fen,
|
| 37 |
get_chess_best_move,
|
| 38 |
-
audio_to_text
|
|
|
|
| 39 |
]
|
| 40 |
|
| 41 |
prompt = ChatPromptTemplate.from_messages([
|
|
|
|
| 16 |
from analyse_chess_position_tool import get_chess_best_move
|
| 17 |
from convert_chessboard_image_to_fen_tool import convert_chessboard_image_to_fen
|
| 18 |
from chess_image_to_fen_tool import chess_image_to_fen
|
| 19 |
+
from audio_to_text_tool import audio_to_text,audio_to_text_from_youtube
|
| 20 |
|
| 21 |
class LangChainAgent:
|
| 22 |
def __init__(self):
|
|
|
|
| 35 |
parse_excel,
|
| 36 |
chess_image_to_fen,
|
| 37 |
get_chess_best_move,
|
| 38 |
+
audio_to_text,
|
| 39 |
+
audio_to_text_from_youtube
|
| 40 |
]
|
| 41 |
|
| 42 |
prompt = ChatPromptTemplate.from_messages([
|