Spaces:
Sleeping
Sleeping
Victoria Shevchenko commited on
Commit ·
a62262e
1
Parent(s): 743a354
added type hints
Browse files24 unmodified lines252627282930318 unmodified lines4041424344454610 unmodified lines5758596061626324 unmodified linesreturn "What magic will you build ?"@tooldef extract_text_from_pdf(pdf_path):"""A tool that extracts text from a PDF file.Args:pdf_path: A string representing the path to the PDF file.8 unmodified linesreturn text@tooldef extract_entities(text, desired_entities):"""A tool that extracts entities from a text using spaCy.Args:10 unmodified linesreturn entities@tooldef create_table_with_specific_entities(text, desired_entities):"""A tool that creates a table with specific entities extracted from a text.Args:text: A string representing the text to extract entities24 unmodified lines252627282930318 unmodified lines40414243444510 unmodified lines5657585960616224 unmodified linesreturn "What magic will you build ?"@tooldef extract_text_from_pdf(pdf_path: str) -> str:"""A tool that extracts text from a PDF file.Args:pdf_path: A string representing the path to the PDF file.8 unmodified linesreturn textdef extract_entities(text, desired_entities):"""A tool that extracts entities from a text using spaCy.Args:10 unmodified linesreturn entities@tooldef create_table_with_specific_entities(text: str, desired_entities: list) -> pd.DataFrame:"""A tool that creates a table with specific entities extracted from a text.Args:text: A string representing the text to extract entities
app.py+2-3