Spaces:
Runtime error
Runtime error
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() | |