runtime error
Exit code: 1. Reason: pec.asyn.get_loop(), func, *args, **kwargs) # type: ignore File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 100, in sync raise return_result File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 55, in _runner result[0] = await coro File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 277, in create await self.cache() File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 312, in cache prediction = await Context.root_block.process_api( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1323, in process_api result = await self.call_function( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1049, in call_function prediction = await fn(*processed_input) File "/home/user/app/app.py", line 71, in complete docsearch = await extractor.prepare_data(file_name, input_file.name, chain_table, apikey=os.getenv("OPEN_AI_API_KEY")) File "/home/user/app/src/extractor.py", line 127, in prepare_data text = self.extract_text_clean(file_name, file_path) File "/home/user/app/src/extractor.py", line 104, in extract_text_clean all_text = self.extract_text_from_pdf(file_path) File "/home/user/app/src/extractor.py", line 71, in extract_text_from_pdf article_dict = scipdf.parse_pdf_to_dict(file_path, soup=True,return_coordinates=False, grobid_url="https://kermitt2-grobid.hf.space") # return dictionary File "/usr/local/lib/python3.10/site-packages/scipdf/pdf/parse_pdf.py", line 408, in parse_pdf_to_dict article_dict = convert_article_soup_to_dict(parsed_article, as_list=as_list) File "/usr/local/lib/python3.10/site-packages/scipdf/pdf/parse_pdf.py", line 359, in convert_article_soup_to_dict article_dict["authors"] = parse_authors(article) File "/usr/local/lib/python3.10/site-packages/scipdf/pdf/parse_pdf.py", line 125, in parse_authors author_names = article.find("sourcedesc").findAll("persname") AttributeError: 'NoneType' object has no attribute 'findAll'
Container logs:
Fetching error logs...