Skip to content

Commit

Permalink
Refactor PDF file reading in generate_audio function
Browse files Browse the repository at this point in the history
  • Loading branch information
knowsuchagency committed Jun 10, 2024
1 parent f99f8d2 commit 365ed18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def generate_audio(file: str, openai_api_key: str = None) -> bytes:
title="PDF to Podcast",
description=description,
fn=generate_audio,
examples=[[p.__fspath__()] for p in Path("examples").glob("*.pdf")],
examples=[[str(p)] for p in Path("examples").glob("*.pdf")],
inputs=[
gr.File(
label="PDF",
Expand Down

0 comments on commit 365ed18

Please sign in to comment.