Skip to content

Commit

Permalink
enable API - specify api_name
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielchua committed Sep 29, 2024
1 parent 3d3227e commit 293d00a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ def generate_podcast(file: str, tone: Optional[str] = None, length: Optional[str
gr.Markdown(label="Transcript"),
],
allow_flagging="never",
api_name=False,
api_name="generate_podcast", # Add this line
theme=gr.themes.Soft()
)

if __name__ == "__main__":
demo.launch()
demo.launch(show_api=True) # Add show_api=True

0 comments on commit 293d00a

Please sign in to comment.