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