Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dicklesworthstone committed May 20, 2024
1 parent 3493b21 commit 08b3c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def convert_document_to_sentences_func(file_path: str) -> Dict[str, Any]:
with open(file_path, 'rb') as file:
input_data_binary = file.read()
result = magika.identify_bytes(input_data_binary)
detected_data_type = result['output']['ct_label']
detected_data_type = result.output.ct_label
try:
if detected_data_type.startswith('text/'):
content = input_data_binary.decode('utf-8')
Expand Down

0 comments on commit 08b3c82

Please sign in to comment.