read_it_later / app.py
sblumenf's picture
Update app.py
c83b8cc
from newspaper import Article
import gradio as gr
def read_later(url):
article = Article(url)
article.download()
article.parse()
return article.text
app = gr.Interface(fn=read_later, inputs=gr.inputs.Textbox(placeholder="Enter URL"), outputs=gr.outputs.Text)
app.launch()