Skip to content

Commit

Permalink
feat: Add description to Gradio interface configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
knowsuchagency committed Jun 9, 2024
1 parent fb76d6c commit 5cb24e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,15 @@ def generate_audio(file: bytes, openai_api_key: str = None) -> bytes:

return audio, transcript

description = """
<p style="text-align:center">
<strong>Convert any PDF into a podcast episode! Experience research papers, websites, and more in a whole new way.</strong>
</p>
"""

demo = gr.Interface(
title="PDF to Podcast",
description=description,
fn=generate_audio,
inputs=[
gr.File(
Expand Down

0 comments on commit 5cb24e8

Please sign in to comment.