openfree commited on
Commit
2677e2a
·
verified ·
1 Parent(s): 2b1a52d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -22
app.py CHANGED
@@ -27,17 +27,6 @@ async def synthesize(article_url):
27
  return f"Error: {str(e)}", None
28
 
29
  with gr.Blocks(theme='gstaff/sketch') as demo:
30
- gr.Markdown("# Turn Any Article into a Podcast")
31
- gr.Markdown("## Easily convert articles from URLs into listenable audio podcasts.")
32
- gr.Markdown("### Instructions")
33
- gr.Markdown("""
34
- - **Step 1:** Paste the URL of the article you want to convert into the textbox.
35
- - **Step 2:** Click on "Podcastify" to generate the podcast.
36
- - **Step 3:** Listen to the podcast or view the conversation.
37
- """)
38
- gr.Markdown("""
39
- - View the code at [GitHub - NarrateIt](https://github.com/EswarDivi/NarrateIt).
40
- """)
41
 
42
  with gr.Group():
43
  text = gr.Textbox(label="Article Link", placeholder="Enter the article URL here...")
@@ -48,7 +37,7 @@ with gr.Blocks(theme='gstaff/sketch') as demo:
48
  aud = gr.Audio(label="Generated Podcast", interactive=False)
49
 
50
  gr.Examples(
51
- examples=["https://huggingface.co/blog/gradio-mcp"],
52
  inputs=text,
53
  fn=synthesize_sync,
54
  outputs=[conv_display, aud]
@@ -56,14 +45,4 @@ with gr.Blocks(theme='gstaff/sketch') as demo:
56
 
57
  btn.click(synthesize_sync, inputs=[text], outputs=[conv_display, aud])
58
 
59
- gr.Markdown("""
60
- Note:
61
- The initial version of Podcastify, which was purely local and used an open-source and on-device models, has been replaced by the current one. You can find it in the local branch.
62
-
63
- Special thanks to:
64
-
65
- - [gstaff/sketch](https://huggingface.co/spaces/gstaff/sketch) for the Sketch Theme.
66
- - [Jina AI](https://jina.ai/reader/) for the web page parsing.
67
- """)
68
-
69
  demo.queue(api_open=True, default_concurrency_limit=15).launch(show_api=True)
 
27
  return f"Error: {str(e)}", None
28
 
29
  with gr.Blocks(theme='gstaff/sketch') as demo:
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  with gr.Group():
32
  text = gr.Textbox(label="Article Link", placeholder="Enter the article URL here...")
 
37
  aud = gr.Audio(label="Generated Podcast", interactive=False)
38
 
39
  gr.Examples(
40
+ examples=["https://huggingface.co/blog/openfree/cycle-navigator"],
41
  inputs=text,
42
  fn=synthesize_sync,
43
  outputs=[conv_display, aud]
 
45
 
46
  btn.click(synthesize_sync, inputs=[text], outputs=[conv_display, aud])
47
 
 
 
 
 
 
 
 
 
 
 
48
  demo.queue(api_open=True, default_concurrency_limit=15).launch(show_api=True)