Alexandre Gazola commited on
Commit
97c003e
·
1 Parent(s): 0ff39df
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -78,7 +78,11 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
78
  continue
79
 
80
  if "in response to the question" not in question_text:
81
- continue
 
 
 
 
82
 
83
  try:
84
  file_name = item.get("file_name")
@@ -91,11 +95,6 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
91
  if file_name.endswith(('.mp3', '.xlsx', '.png')):
92
  file_path = os.path.join(BASE_DIR, 'files', f'{file_name}.b64')
93
  question_text_for_agent += f'. The path to the base64 contents of the attatched file mentioned in the question is the following: {file_path}'
94
-
95
- print('testing whisper with youtube video')
96
- whisper_return = audio_to_text_from_youtube('https://www.youtube.com/watch?v=1htKBjuUWec')
97
- print(whisper_return)
98
- return None
99
  else:
100
  file_path = os.path.join(BASE_DIR, 'files', file_name)
101
  plain_txt_file = get_text_file_contents(file_path)
 
78
  continue
79
 
80
  if "in response to the question" not in question_text:
81
+ continue
82
+
83
+ print('testing whisper with youtube video')
84
+ whisper_return = audio_to_text_from_youtube('https://www.youtube.com/watch?v=1htKBjuUWec')
85
+ print(whisper_return)
86
 
87
  try:
88
  file_name = item.get("file_name")
 
95
  if file_name.endswith(('.mp3', '.xlsx', '.png')):
96
  file_path = os.path.join(BASE_DIR, 'files', f'{file_name}.b64')
97
  question_text_for_agent += f'. The path to the base64 contents of the attatched file mentioned in the question is the following: {file_path}'
 
 
 
 
 
98
  else:
99
  file_path = os.path.join(BASE_DIR, 'files', file_name)
100
  plain_txt_file = get_text_file_contents(file_path)