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,
|
type=str,
|
||||||
help="Use custom prompt.",
|
help="Use custom prompt.",
|
||||||
)
|
)
|
||||||
def cli(
|
def cli(file_path: Path | str, json_transcript: bool, youtube: bool, prompt: str):
|
||||||
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."""
|
"""Provide summary for a file at the specified path or a youtube video at the specified url."""
|
||||||
|
|
||||||
content = ""
|
content = ""
|
||||||
|
@ -110,10 +108,12 @@ def cli(
|
||||||
if json_transcript or youtube:
|
if json_transcript or youtube:
|
||||||
content = extract_transcript_contents(content)
|
content = extract_transcript_contents(content)
|
||||||
|
|
||||||
|
print(f"DEBUG: content = {content}")
|
||||||
if not content:
|
if not content:
|
||||||
print("Please provide a file with valid content.")
|
print("Please provide a file with valid content.")
|
||||||
|
|
||||||
print(summarize_text_file(content, prompt))
|
print(summarize_text_file(content, prompt))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
cli()
|
cli()
|
||||||
|
|
Loading…
Reference in a new issue