File size: 334 Bytes
c83b8cc
fbcd133
c83b8cc
0277381
 
 
 
 
 
fbcd133
 
 
 
0277381
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()