Alexandre Gazola commited on
Commit
e76f9f5
·
1 Parent(s): 329b8f3
Files changed (2) hide show
  1. app.py +1 -1
  2. utils.py +1 -0
app.py CHANGED
@@ -137,7 +137,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
137
  try:
138
  file_name = item.get("file_name")
139
  #provisorio
140
- if not file_name and "birds" not in question_text:
141
  continue
142
  question_text_for_agent = question_text
143
  if file_name:
 
137
  try:
138
  file_name = item.get("file_name")
139
  #provisorio
140
+ if not file_name and "bird" not in question_text:
141
  continue
142
  question_text_for_agent = question_text
143
  if file_name:
utils.py CHANGED
@@ -38,6 +38,7 @@ def get_text_file_contents(file_path):
38
  try:
39
  with open(file_path, 'r', encoding='utf-8') as file:
40
  content = file.read()
 
41
  return content
42
  except FileNotFoundError:
43
  print(f"Error: File not found at path: {file_path}")
 
38
  try:
39
  with open(file_path, 'r', encoding='utf-8') as file:
40
  content = file.read()
41
+ print(content)
42
  return content
43
  except FileNotFoundError:
44
  print(f"Error: File not found at path: {file_path}")