Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
knowsuchagency committed Jun 12, 2024
1 parent 4ae356e commit 793661a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def generate_audio(file: str, openai_api_key: str = None) -> bytes:
temporary_directory = "./gradio_cached_examples/tmp/"
os.makedirs(temporary_directory, exist_ok=True)

# we use a temporary file because Gradio's audio component doesn't work with raw bytes in Safari
temporary_file = NamedTemporaryFile(
dir=temporary_directory,
delete=False,
Expand Down

0 comments on commit 793661a

Please sign in to comment.