Spaces:
Sleeping
Sleeping
Alexandre Gazola
commited on
Commit
·
46431fc
1
Parent(s):
567cd89
fix
Browse files- app.py +4 -4
- langchain_agent.py +2 -2
app.py
CHANGED
@@ -91,10 +91,10 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
91 |
file_path = os.path.join(BASE_DIR, 'files', f'{file_name}.b64')
|
92 |
question_text_for_agent += f'. The path to the base64 contents of the attatched file mentioned in the question is the following: {file_path}'
|
93 |
|
94 |
-
print('testing whisper')
|
95 |
-
whisper_return = audio_to_text(file_path)
|
96 |
-
print(whisper_return)
|
97 |
-
return None
|
98 |
else:
|
99 |
file_path = os.path.join(BASE_DIR, 'files', file_name)
|
100 |
plain_txt_file = get_text_file_contents(file_path)
|
|
|
91 |
file_path = os.path.join(BASE_DIR, 'files', f'{file_name}.b64')
|
92 |
question_text_for_agent += f'. The path to the base64 contents of the attatched file mentioned in the question is the following: {file_path}'
|
93 |
|
94 |
+
#print('testing whisper')
|
95 |
+
#whisper_return = audio_to_text(file_path)
|
96 |
+
#print(whisper_return)
|
97 |
+
#return None
|
98 |
else:
|
99 |
file_path = os.path.join(BASE_DIR, 'files', file_name)
|
100 |
plain_txt_file = get_text_file_contents(file_path)
|
langchain_agent.py
CHANGED
@@ -34,8 +34,8 @@ class LangChainAgent:
|
|
34 |
get_botanical_classification,
|
35 |
parse_excel,
|
36 |
chess_image_to_fen,
|
37 |
-
get_chess_best_move
|
38 |
-
|
39 |
]
|
40 |
|
41 |
prompt = ChatPromptTemplate.from_messages([
|
|
|
34 |
get_botanical_classification,
|
35 |
parse_excel,
|
36 |
chess_image_to_fen,
|
37 |
+
get_chess_best_move,
|
38 |
+
audio_to_text
|
39 |
]
|
40 |
|
41 |
prompt = ChatPromptTemplate.from_messages([
|