deveix commited on
Commit
6c6cd07
·
1 Parent(s): 08e69e9

add logs for result text

Browse files
Files changed (1) hide show
  1. app/main.py +1 -1
app/main.py CHANGED
@@ -182,7 +182,7 @@ async def get_answer(item: Item, token: str = Depends(verify_token)):
182
 
183
  # Assuming 'retrieve_file.txt' is where we retrieve lines based on line numbers
184
  result_text = get_text_by_block_number('app/quran_tafseer.txt', line_numbers)
185
-
186
  return {"result_text": result_text}
187
  except Exception as e:
188
  # If there's an error, return a 500 error with the error's details
 
182
 
183
  # Assuming 'retrieve_file.txt' is where we retrieve lines based on line numbers
184
  result_text = get_text_by_block_number('app/quran_tafseer.txt', line_numbers)
185
+ print(result_text)
186
  return {"result_text": result_text}
187
  except Exception as e:
188
  # If there's an error, return a 500 error with the error's details