Format
This commit is contained in:
parent
d6bc9e6728
commit
bf3c298034
1 changed files with 3 additions and 3 deletions
|
@ -90,9 +90,7 @@ def rm_dir(dir: Path | str) -> None:
|
|||
type=str,
|
||||
help="Use custom prompt.",
|
||||
)
|
||||
def cli(
|
||||
file_path: Path | str, json_transcript: bool, youtube: bool, prompt: str
|
||||
):
|
||||
def cli(file_path: Path | str, json_transcript: bool, youtube: bool, prompt: str):
|
||||
"""Provide summary for a file at the specified path or a youtube video at the specified url."""
|
||||
|
||||
content = ""
|
||||
|
@ -110,10 +108,12 @@ def cli(
|
|||
if json_transcript or youtube:
|
||||
content = extract_transcript_contents(content)
|
||||
|
||||
print(f"DEBUG: content = {content}")
|
||||
if not content:
|
||||
print("Please provide a file with valid content.")
|
||||
|
||||
print(summarize_text_file(content, prompt))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
cli()
|
||||
|
|
Loading…
Reference in a new issue