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