Skip to content

Commit

Permalink
Update the typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
HackyRoot committed Jan 23, 2025
1 parent 2fa611d commit ca0760e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/document_to_podcast/preprocessing/data_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ def load_docx(docx_file: str | UploadedFile) -> str | None:
return None


def load_file(file: str | UploadedFile) -> str | None:
def load_file(file) -> str | None:
"""
Loads the content of a file and converts it to markdown.
Args:
file: Either a file path string or a Streamlit UploadedFile object
file: A Streamlit UploadedFile object.
Returns:
The markdown text content if successful, None otherwise
Expand Down

0 comments on commit ca0760e

Please sign in to comment.